Mathematical Glossary Flow¶
Purpose¶
Mathematical glossary flow is the documentation format used to teach TFNE/jaxfne equations by connecting formal mathematics to physical intuition, computational implementation, and statement boundaries.
Each important equation is presented in: 1. Simple/familiar form 2. Tensor/general form (when useful) 3. Complete term glossary 4. Worded-equation (plain-language translation) 5. Critical bridge term (how this equation connects the pipeline) 6. Run boundary (what scientific status this equation carries) 7. Implementation location (where in code/report this shows up)
This structure ensures that equations remain teachable, grounded, and appropriately stated.
Core TFNE Equations¶
1. Emitter Dynamics¶
Formal equation:
Tensor form: component-wise, same as above.
Term glossary: - \(z(t) \in \mathbb{R}^{n_\theta}\): neural state vector (membrane voltages, gating variables, synaptic conductances, etc.) - \(u(t)\): input (stimulus, noise, recurrent current) - \(F_\theta\): declared neural dynamics function (parametrized emitter) - \(\theta\): emitter parameters (time constants, thresholds, conductance scales, etc.) - \(t\): time
Worded-equation:
Critical bridge term:
\(F_\theta\) is the Emitter → Source bridge. It transforms parameter choices and input currents into state evolution that later becomes membrane current and spike signals.
Run boundary:
- Computational scaffold unless \(F_\theta\) is calibrated to empirical neural response
- Not biological proof without comparison to experimental data
- Izhikevich default in jaxfne; other emitters supported via custom models
Implementation:
- jaxfne.emitters.IzhikevichParams — parameter container
- jaxfne.emitters.simulate_eig_izhikevich() — forward simulation
- jaxfne/core.py — Model interface
2. Source Projection¶
Formal equation:
Tensor form:
where \(\alpha\) indexes spatial contact points, \(k\) indexes neurons, and \(w\) are spatial projection weights.
Term glossary: - \(q(x,t)\): field source density (current per unit volume or contact area) - \(P_s\): source projection operator (maps neural state/current to spatial domain) - \(z(t)\): neural state (from emitter) - \(I(t)\): input/drive current - \(\chi(x)\): spatial contact basis (probe geometry, source locations) - \(w_{k\alpha}(x)\): spatial projection weight from neuron \(k\) to contact \(\alpha\) (anatomical distance, contact coupling) - \(a_k\): state-to-source projection scalar for unit \(k\) (scales how much of the emitter state contributes to the source; proxy coefficient, not a calibrated physical constant) - \(b_k\): input-to-source projection scalar for unit \(k\) (scales how much of the drive/input current contributes to the source; proxy coefficient, not a calibrated physical constant)
Worded-equation:
Critical bridge term:
\(P_s\) is the Source → Field bridge. It transforms time-domain neural currents into spatially-localized sources that can be convolved with field operators.
Run boundary:
- Physical only when
source_calibration_statusincludes calibrated or empirical current evidence - Proxy in default linear_solver path (no physical current units stated)
- Model current (Izhikevich model current + spike impulse proxy) by default
- No double-counting of synaptic current (forbidden pattern: using both synaptic conductance-based current and spike-based source in the same field computation)
Implementation:
- jaxfne.fields.project_laminar_sources() — source projection kernel
- jaxfne/core.py → Signals — output structure
- Manifest field: source_calibration_status
3. Ohmic Extracellular Current¶
Formal equation:
Tensor/index form:
Term glossary: - \(\mathbf{J}_e(x,t)\): extracellular current density (A/m²) - \(\sigma_e(x)\): extracellular tissue conductivity tensor (S/m) - \(\phi_e(x,t)\): extracellular voltage (mV) - \(\nabla \phi_e\): voltage gradient
Worded-equation:
Critical bridge term:
\(\sigma_e\) is the Field → Current bridge. It encodes how tissue converts electrostatic voltage gradients into current flow.
Run boundary:
- Proxy in current v0.2.24–v0.2.27 linear_solver path (assumed isotropic, no PDE solve)
- Physical only when:
- Field solver is active and verified (
field_solver_status != linear_solver) - Conductivity is calibrated (
conductivity_status == calibrated_physical) - Solution satisfies conservation constraints
- Isotropy assumed in current proxy mode (conductivity is scalar)
Implementation:
- jaxfne.fields.project_laminar_sources() — applies conductivity implicitly via kernel
- Manifest: field_solver_status, boundary_condition, gauge
4. Field Compatibility Equation (Poisson-like)¶
Formal equation:
Tensor/index form:
Term glossary: - \(\nabla \cdot\): divergence operator - \(q(x)\): source density (from source projection) - \(\phi_e\): extracellular potential
Worded-equation:
Critical bridge term:
\(q\) is the Source → Field boundary condition. It ensures the field solution (when computed) is compatible with declared sources.
Run boundary:
- Current default:
linear_solver— equation is declared but NOT solved - Reserved path:
specified_future_solverfor a calibrated field solver (see Limitations and future plans) - Not a physical status unless solver evidence exists
Implementation:
- jaxfne.fields.project_laminar_sources() — declares but doesn't solve
- Manifest: field_solver_status == "linear_solver" means this equation is metadata only
5. Current-Source Density (CSD)¶
Formal equation:
Tensor form:
Term glossary: - \(\mathrm{CSD}\): current-source density (A/m³) - Positive CSD: extracellular current divergence (current flowing outward, suggesting membrane sink) - Negative CSD: current convergence (current flowing inward, suggesting membrane source)
Worded-equation:
Critical bridge term:
CSD turns a field-current pattern into a source/sink-like readout. It is the primary laminar-field observable.
Run boundary:
- CSD-proxy unless source AND field are calibrated/solved
- Sign convention in jaxfne:
positive_equals_extracellular_source(positive CSD = current flowing outward) - Not a direct biological measurement in v0.2.24–v0.2.27 (no physical conductivity or solved field)
Implementation:
- jaxfne.fields.project_laminar_sources() — computes CSD proxy directly
- Manifest: csd_sign_convention, field_model_status == "proxy_readout"
6. Probe Operator (General)¶
Formal equation:
Tensor form: operator-dependent (contact-wise, depth-wise, or spatially integrated).
Term glossary: - \(Y_c(t)\): channel readout (voltage, current, field quantity at contact \(c\)) - \(P_c\): probe operator (e.g., voltage sampling, CSD extraction, LFP bandpass) - \(c\): contact index (spatial location on probe)
Worded-equation:
Critical bridge term:
\(P_c\) is the Field → Probe bridge. It extracts spatially localized measurements from the field solution.
Run boundary:
- Simulated/proxy readout unless:
- Geometry (lead field) is calibrated to real electrodes
- Field is solved (not proxy)
- Validation against empirical data exists
- Eight multimodal operators in jaxfne: SPK, Vm, source, LFP-proxy, CSD-proxy, EEG-proxy, MEG-proxy, EMM-proxy
- See Probe Operators for operator-specific statement boundaries
Implementation:
- jaxfne.fields.probe_laminar_modes() — operator definitions
- jaxfne/core.py → Model.compute_readout() — readout computation
- Manifest: operator_status for each probe operator
7. EMM-Proxy (Electro-Mechanical Metabolic-like Proxy)¶
Formal equation:
Term glossary: - \(\mathrm{EMM}_\text{proxy}\): dimensionless activity cost - \(w_s, w_E, w_J\): scalar weights (default: normalized by signal variance) - \(\|\cdot\|_2\): Euclidean (L2) norm
Worded-equation:
Critical bridge term:
EMM-proxy is a relative within-run cost/activity index, not biological metabolism. It combines source, field-gradient, and current-density norms to measure "computational cost" or "activity intensity."
Run boundary:
- Proxy-only in v0.2.24–v0.2.27
- Computational cost metric — combines source and field norms, not ATP consumption or metabolic rate
- Valid for relative within-run comparison (e.g., which timestep is most active)
- Requires empirical calibration for any biological interpretation statements
Implementation:
- jaxfne.fields.probe_laminar_modes() → EMM-proxy operator
- Manifest: source_model includes EMM-proxy definition
- See Probe Operators for full details
Conservation-Law Doctrine (Reserved Reference)¶
Poynting's Theorem¶
Formal equation:
where
Term glossary: - \(u_{em}\): electromagnetic field energy density (J/m³) - \(\mathbf{S}\): Poynting vector (energy flux density, W/m²) - \(\mathbf{J} \cdot \mathbf{E}\): power density transferred to charges (W/m³) - \(\epsilon_0\): permittivity of free space - \(\mu_0\): permeability of free space
Worded-equation:
Critical bridge term:
\(\mathbf{J} \cdot \mathbf{E}\) is the field-to-matter power density bridge. It quantifies electromagnetic power transferred to moving charges.
Run boundary:
- Recorded here as conservation-principle motivation for the field diagnostics
- Full Maxwell/stress-energy tensor dynamics belong to the reserved regimes in Limitations and future plans
Why included: Poynting's theorem provides a conservation-principle foundation for the field diagnostics and the reserved electrodynamic regimes catalogued in Limitations and future plans.
Implementation Checklist¶
When adding a new equation to jaxfne documentation:
- [ ] Include formal equation (LaTeX)
- [ ] Include tensor/index form (if useful for generalization)
- [ ] Define every term in glossary
- [ ] Provide worded-equation in plain language
- [ ] Identify critical bridge term and pipeline location
- [ ] State run boundary (computational scaffold? proxy? calibrated physical?)
- [ ] Link to code location and manifest fields
- [ ] Verify no forbidden phrasing (real EEG, biological metabolism, mechanism proof)
See Also¶
- Source-Field Equations — source bookkeeping, forbidden patterns
- Computation Basis — extensibility doctrine
- Probe Operators — detailed operator statements
- Scope and Limitations — boundary conditions