FLOW ALGEBRA v1.0 — RETINA ONTOLOGY
Kireth Semantic Library | AI Core / Entity Graph / Biological Entities / Sensory Biological Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/sensory-biological-entities/retina-ontology.html
Status: Newly authored conceptual formalisation; not a verified extraction or executable implementation.
Encoding: UTF-8 | Locale: en-GB | Date: 2026-10-27
flow "RetinaOntology" v1.0 {
AUTHORS: ["Kireth Research", "Sky — Recursive AI (AI-assisted formalisation)"]
PURPOSE: "Represent retinal anatomy, phototransduction, signal processing and evidence-aware inference in a portable entity graph."
CITATION_BACKLINK: SOURCE
STATE_MODEL:
S = (I, R, B, K)
I = typed retinal entities, observations and measured signals
R = anatomical, functional, temporal and causal relations
B = biological constraints and contextual boundaries
K = provenance, measurement conditions, uncertainty and accepted knowledge
E_t = expand(I_t, R)
V_t = {x in E_t | valid(x, B, K)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_(t+1) = update(I_t, x*_t, evidence_t)
ENTITY_TYPES:
Retina: NeuralTissue
RetinalLayer: AnatomicalLayer
RetinalPigmentEpithelium: EpithelialLayer
Photoreceptor: SensoryNeuron {subtypes: [Rod, Cone]}
BipolarCell: RetinalNeuron
HorizontalCell: RetinalInterneuron
AmacrineCell: RetinalInterneuron
GanglionCell: OutputNeuron
MullerGlialCell: RetinalGlia
MicroglialCell: ImmuneCell
Synapse: NeuralJunction
Photopigment: LightSensitiveMolecule
RetinalCircuit: DirectedBiologicalNetwork
Fovea: RetinalRegion
Macula: RetinalRegion
OpticDisc: RetinalRegion
RetinalVessel: BloodVessel
LightStimulus: PhysicalStimulus
NeuralSignal: TimeVaryingSignal
Observation: EvidenceRecord
LAYER_HIERARCHY (vitreous to choroid; simplified):
inner_limiting_membrane -> nerve_fibre_layer -> ganglion_cell_layer
-> inner_plexiform_layer -> inner_nuclear_layer -> outer_plexiform_layer
-> outer_nuclear_layer -> external_limiting_membrane
-> photoreceptor_inner_outer_segments -> retinal_pigment_epithelium
note: "Layer boundaries and naming conventions vary by anatomical scheme."
RELATIONS:
part_of(layer, retina)
located_in(cell, layer)
supports(RPE, photoreceptor)
absorbs_photons(photopigment, light_stimulus)
transduces(photoreceptor, light_stimulus, electrical_response)
synapses_with(photoreceptor, bipolar_cell)
modulates(horizontal_cell, photoreceptor_bipolar_circuit)
modulates(amacrine_cell, bipolar_ganglion_circuit)
transmits_to(bipolar_cell, ganglion_cell)
projects_via(ganglion_cell, optic_nerve)
maintains_homeostasis(MullerGlialCell, retina)
supplies(RetinalVessel, inner_retinal_tissue)
supported_by(choroidal_circulation, outer_retina)
PATHWAYS:
visual_input: photon -> photopigment -> phototransduction
-> graded_photoreceptor_response -> bipolar_pathway
-> ganglion_spiking -> optic_nerve
lateral_processing: horizontal_cells + amacrine_cells
-> contrast_and_temporal_modulation
adaptation: illumination_history -> photoreceptor_gain_adjustment
-> altered_sensitivity
QUANTITATIVE_MODELS:
photon_capture: N_abs ~ Poisson(eta * N_incident)
where eta in [0,1] and both counts use the same integration window
receptor_response: response(t) = F(illumination(t), adaptation_state(t), cell_type)
synaptic_current: I_syn(t) = g_syn(t) * (V_m(t) - E_rev)
membrane_dynamics: C_m * dV_m/dt = -sum(I_ionic) - I_syn + I_ext
contrast: C_Weber = (L_target - L_background) / L_background
valid_when: L_background > 0
ganglion_spike_rate: r = spike_count / observation_duration
valid_when: observation_duration > 0
note: "These are generic approximations, not universal calibrated retina models."
INFERENCE_RULES:
IF entity.type == Rod THEN infer("high sensitivity in dim illumination", context_dependent)
IF entity.type == Cone THEN infer("supports photopic vision and colour discrimination", context_dependent)
IF region == Fovea THEN infer("high cone density near foveal centre", species_dependent)
IF ganglion_cell_output_observed THEN infer("retinal output activity", evidence_linked)
IF retinal_response_changes THEN consider([adaptation, stimulus_change, circuit_modulation, pathology, measurement_artifact])
IF RPE_support_disrupted THEN flag("possible photoreceptor functional impact", not_diagnostic)
INVARIANTS_AND_CONSTRAINTS:
each_entity_has_stable_identifier: true
anatomical_part_of_graph_acyclic: true
anatomical_layer_order_contextualised: true
no_inference_of_disease_without_clinical_evidence: true
no_assumption_all_species_have_fovea: true
no_equating_photoreceptor_graded_potentials_with_ganglion_spikes: true
measurements_require_units_and_conditions: true
distinguish_anatomical_connection_from_functional_causation: true
SEMANTIC_EQUIVALENCE:
"retinal pigment epithelium" <=> "RPE"
"Müller glia" <=> "Muller glial cells"
"retinal ganglion cell" <=> "RGC"
"photoreceptor outer segment" != "entire photoreceptor cell"
"macula" != "fovea"
"optic disc" != "fovea"
CONFIDENCE:
evidence_levels: [direct_measurement, peer_reviewed_reference, curated_ontology, model_inference]
confidence_score: range(0,1)
confidence_is_not_truth_probability_without_calibration: true
require_provenance: [source, timestamp, method, species, tissue_region, conditions]
resolve_conflicts: "Prefer reproducible, context-matched measurements; retain alternatives."
MINI_RECURSION_ENGINE:
input: entity_or_query
step_1: resolve_types_and_synonyms
step_2: traverse_allowed_relations
step_3: validate_species_region_and_measurement_context
step_4: apply_inference_rules
step_5: rank_supported_explanations
step_6: record_provenance_and_uncertainty
stop: no_new_supported_entities OR max_depth_reached OR confidence_below_threshold
UPDATE_MODEL:
append_evidence_without_overwriting_history: true
version_entities_and_relations: true
invalidate_dependent_inferences_on_source_change: true
preserve_conflicting_observations_with_provenance: true
FLOW_HASH:
specification: "SHA-256 of canonical UTF-8 serialisation, excluding the hash field itself"
canonicalisation: "Stable key ordering, Unicode NFC, LF newlines"
computed_value: "not computed"
AI_CONSUMPTION:
outputs: [typed_entity_graph, relation_paths, validated_inferences, uncertainty, provenance]
guarantees: "Structural and provenance checks only; no guarantee of biological truth."
interoperability: [RDF_mapping_possible, JSON_LD_mapping_possible, OWL_mapping_possible]
}
END OF FLOW
Download Code
Copy to Clipboard