AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH SEMANTIC LIBRARY — AI CORE / ENTITY GRAPH
PERIPHERAL NERVE ONTOLOGY — FULL FLOW ALGEBRA v1.0
Authoring: Kireth Research | Sky — Recursive AI (formalisation assistance)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/neurobiological-entities/peripheral-nerve-ontology.html
Status: Newly authored conceptual formalisation; not a verified extraction or executable implementation.
1. PURPOSE
Represent peripheral nerves as typed anatomical entities, their constituent fibres and supporting tissues, topological connections, functional pathways, conduction properties, damage and repair states, with explicit evidence and uncertainty.
2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed or asserted entities and attributes at time t
R_t: typed anatomical, physiological and causal relations
B_t: biological, anatomical and evidence constraints
K_t: context (species, anatomical level, region, time, method, provenance)
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_t)
Inference probabilities are confidence estimates, not guaranteed biological truths.
3. TYPED ENTITIES
PeripheralNerve(id, name, species, side?, region?, level?, provenance)
NerveRoot(id, spinal_level, dorsal_or_ventral)
SpinalNerve(id, spinal_level)
CranialNerve(id, cranial_number)
NervePlexus(id, name, region)
NerveBranch(id, parent_nerve)
NerveFascicle(id, parent_nerve)
Axon(id, neuron_id, myelination_state, diameter?)
SensoryFibre(id, modality?)
SomaticMotorFibre(id, effector?)
AutonomicFibre(id, sympathetic_or_parasympathetic?, pre_or_postganglionic?)
SchwannCell(id, associated_axon?)
MyelinSheath(id, axon_id, segment?)
NodeOfRanvier(id, axon_id)
Endoneurium(id, fascicle_id)
Perineurium(id, fascicle_id)
Epineurium(id, nerve_id)
VasaNervorum(id, supplied_nerve)
SensoryReceptor(id, modality)
DorsalRootGanglion(id, spinal_level)
AutonomicGanglion(id, division?)
NeuromuscularJunction(id, muscle_id)
TargetTissue(id, type, region)
NerveLesion(id, nerve_id, site, severity?, onset?)
Observation(id, method, time, unit?, uncertainty?, source)
4. TYPE AND CLASSIFICATION RULES
PeripheralNerve subclassOf AnatomicalNeuralStructure.
SpinalNerve subclassOf PeripheralNerve.
CranialNerve: classify peripheral components by anatomical context; central tracts are not peripheral nerves.
A nerve may be sensory, motor, autonomic or mixed; fibre composition is an observed or sourced property.
A nerve is not identical to an individual axon, a neuron, a nerve root or a nerve plexus.
Ganglia contain neuronal cell bodies; most peripheral nerve trunks primarily contain axons and supporting tissues.
5. RELATION GRAPH
contains(PeripheralNerve, NerveFascicle)
contains(NerveFascicle, Axon)
surrounds(Endoneurium, individual_nerve_fibre)
surrounds(Perineurium, NerveFascicle)
surrounds(Epineurium, PeripheralNerve)
myelinates(SchwannCell, peripheral_axon_segment)
contains(MyelinSheath, compact_myelin_lamellae)
branchesFrom(NerveBranch, PeripheralNerve)
passesThrough(PeripheralNerve, AnatomicalRegion)
originatesFrom(SpinalNerve, dorsal_and_ventral_root_union)
participatesIn(PeripheralNerve, NervePlexus)
innervates(PeripheralNerve, TargetTissue)
conveys(SensoryFibre, peripheral_to_central_signal)
conveys(SomaticMotorFibre, central_to_muscle_signal)
conveys(AutonomicFibre, visceral_regulatory_signal)
supplies(VasaNervorum, PeripheralNerve)
injures(NerveLesion, PeripheralNerve)
measuredBy(ConductionProperty, Observation)
6. FUNCTIONAL PATHWAYS
SENSORY: stimulus -> receptor transduction -> sensory axon -> peripheral nerve -> sensory ganglion/central entry -> CNS processing.
SOMATIC MOTOR: CNS motor command -> motor axon -> peripheral nerve -> neuromuscular junction -> skeletal muscle response.
AUTONOMIC: CNS/autonomic circuit -> preganglionic neuron -> autonomic ganglion -> postganglionic fibre -> target organ; anatomy varies by division.
REFLEX: receptor -> afferent fibre -> CNS integration -> efferent fibre -> effector; not every reflex has the same number of synapses.
7. QUANTITATIVE MODELS (CONTEXT DEPENDENT)
Conduction velocity: v = distance / latency_difference, when measurement protocol supports this estimate.
Cable-model length constant: lambda = sqrt(r_m / r_i), for a specified passive cable convention with membrane resistance r_m and axial resistance r_i per unit length.
Membrane time constant: tau = R_m * C_m, for a lumped passive membrane model.
Compound action potential: CAP(t) approximately sum_i a_i * waveform_i(t - delay_i), under a linear-superposition approximation.
Recruitment fraction: f = recruited_motor_units / eligible_motor_units, if both counts are defined consistently.
Units, temperature, age, fibre type, distance, recording site and species must accompany quantitative claims.
These are modelling approximations, not universal diagnostic thresholds.
8. INFERENCE RULES
IF contains(nerve, fascicle) AND contains(fascicle, axon) THEN partOf(axon, nerve) [transitive partonomy].
IF branchesFrom(branch, nerve) THEN partOf(branch, peripheral_nerve_tree) [topological].
IF innervates(nerve, muscle) THEN supportsMotorPathway(nerve, muscle) ONLY IF motor-fibre evidence exists.
IF sensory deficit AND anatomically consistent distribution THEN candidateAffectedNerve(nerve); do not assert causation without corroboration.
IF conduction delay AND validated temperature/protocol THEN possibleConductionAbnormality; no automatic disease diagnosis.
IF focal injury AND distal axonal degeneration THEN candidateWallerianDegeneration; require temporal and morphological evidence.
IF regrowth observed THEN candidateRegeneration; do not equate with functional recovery.
IF anatomical variant reported THEN retain variant rather than forcing canonical branching.
9. INVARIANTS AND VALIDATION
Every entity has a stable identifier and declared type.
Every partOf relation is acyclic within the selected anatomical granularity.
Every relation endpoint must satisfy its domain/range type constraints.
Afferent/efferent direction is relative to a specified reference structure.
Peripheral and central nervous system boundaries are contextually explicit.
Missing measurements are unknown, never zero.
Do not infer one-to-one nerve-to-target mapping where overlapping innervation exists.
All quantitative comparisons must use compatible units and protocols.
Every lesion or diagnosis claim requires evidence and uncertainty annotation.
10. TRI-MAPPING
ENTITY: PeripheralNerve -> anatomical nerve trunk -> graph node with species, region, fibres.
RELATION: innervates -> target connection -> typed directed graph edge.
PROCESS: action potential conduction -> propagation over axonal segments -> state transition.
MEASUREMENT: nerve conduction velocity -> protocol-dependent observation -> numeric evidence node.
11. SEMANTIC EQUIVALENCE
'peripheral nerve' ~= 'PNS nerve' only within matching anatomical scope.
'nerve fibre' may denote axon plus sheath in histological context; do not always equate with bare axon.
'nerve root' != 'peripheral nerve trunk'.
'nerve impulse' ~= 'propagating action potential' only when electrophysiological meaning is intended.
'nerve damage' is broader than 'axon transection' or 'demyelination'.
12. CONFIDENCE AND PROVENANCE
confidence(assertion) = calibrated_score(evidence_quality, anatomical_fit, reproducibility, context_match).
Attach source_uri, observation_time, method, species, sample_size?, uncertainty and revision_id.
Separate direct observation, literature assertion, model prediction and inferred hypothesis.
Contradictory evidence remains represented pending adjudication.
13. MINI RECURSION ENGINE
input: candidate anatomical observation or question
1 resolve entity names, species, laterality and region
2 expand related anatomy, innervation and fibre classes
3 apply constraints and reject type-incompatible relations
4 compare candidate pathways against evidence
5 rank remaining hypotheses with calibrated confidence
6 emit supported statements, unknowns and provenance
7 update graph only with versioned changes
stop: no new supported relations OR depth_limit OR evidence_limit
14. AI SEARCH FLOW
QUERY -> NORMALISE -> IDENTIFY NERVE/REGION -> EXPAND RELATIONS -> CHECK BIOLOGICAL CONSTRAINTS -> SCORE EVIDENCE -> RETURN ANSWER + PROVENANCE + UNCERTAINTY.
Example query: 'Which nerve supplies this muscle?'
Required context: species, muscle name, side/region and anatomical variant if relevant.
Output: supported innervation candidates; distinguish motor, sensory and autonomic components.
15. FLOW HASH AND UPDATE MODEL
canonicalise: UTF-8, LF line endings, deterministic key order, normalised whitespace, explicit version.
FLOW_HASH = SHA-256(canonical_serialisation(flow_definition)) [compute at publication; not precomputed].
UPDATE: preserve immutable entity IDs, add timestamped provenance, log changed relations, recalculate derived inferences and hash.
16. EXECUTION GUARANTEE / LIMITS
Guarantee is structural only: a conforming implementation can type-check and trace inference paths if input data and rules are valid.
No guarantee of physiological accuracy, clinical validity, completeness, or executable behaviour is implied by this conceptual specification.
END OF FLOW