FLOW ALGEBRA
TITLE: Pancreas Ontology
VERSION: 1.0
DATE: 2026-10-19
AUTHOR: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/organ-entities/pancreas-ontology.html
STATUS: Independently modelled scientific draft; source page content not verified.
1. PURPOSE
Represent the pancreas as an organ with endocrine and exocrine compartments, anatomy, cell populations, secretions, physiological regulation, and evidence-qualified inference.
2. TYPES
entity Organ, AnatomicalRegion, Tissue, Cell, Duct, Vessel, Hormone, Enzyme, Secretion, Process, Condition, Observation, Evidence.
subtype Pancreas <: Organ.
subtype PancreaticHead, PancreaticBody, PancreaticTail <: AnatomicalRegion.
subtype ExocrinePancreas, EndocrinePancreas <: Tissue.
subtype AcinarCell, DuctalCell, AlphaCell, BetaCell, DeltaCell, PPCell, EpsilonCell <: Cell.
subtype MainPancreaticDuct, AccessoryPancreaticDuct <: Duct.
subtype Insulin, Glucagon, Somatostatin, PancreaticPolypeptide, Ghrelin <: Hormone.
subtype Amylase, Lipase, ProteasePrecursor <: Enzyme.
subtype Digestion, GlycaemicRegulation, BicarbonateSecretion, EnzymeSecretion <: Process.
3. RELATION SIGNATURES
PART_OF(entity,entity) -> bool
LOCATED_IN(entity,entity) -> bool
CONTAINS(entity,entity) -> bool
PRODUCES(Cell,entity) -> bool
SECRETES_INTO(Cell,entity) -> bool
PARTICIPATES_IN(entity,Process) -> bool
REGULATES(entity,Process) -> bool
DRAINS_TO(Duct,entity) -> bool
SUPPORTED_BY(Observation,Evidence) -> bool
HAS_CONFIDENCE(Observation,float[0..1]) -> bool
4. CORE AXIOMS
PART_OF(PancreaticHead,Pancreas)
PART_OF(PancreaticBody,Pancreas)
PART_OF(PancreaticTail,Pancreas)
PART_OF(ExocrinePancreas,Pancreas)
PART_OF(EndocrinePancreas,Pancreas)
CONTAINS(ExocrinePancreas,AcinarCell)
CONTAINS(ExocrinePancreas,DuctalCell)
CONTAINS(EndocrinePancreas,AlphaCell)
CONTAINS(EndocrinePancreas,BetaCell)
CONTAINS(EndocrinePancreas,DeltaCell)
PRODUCES(BetaCell,Insulin)
PRODUCES(AlphaCell,Glucagon)
PRODUCES(DeltaCell,Somatostatin)
PRODUCES(PPCell,PancreaticPolypeptide)
PRODUCES(EpsilonCell,Ghrelin)
PRODUCES(AcinarCell,Amylase)
PRODUCES(AcinarCell,Lipase)
PRODUCES(AcinarCell,ProteasePrecursor)
PARTICIPATES_IN(Insulin,GlycaemicRegulation)
PARTICIPATES_IN(Glucagon,GlycaemicRegulation)
PARTICIPATES_IN(DuctalCell,BicarbonateSecretion)
PARTICIPATES_IN(AcinarCell,EnzymeSecretion)
5. FLOW OPERATORS
flow endocrine_output:
pancreatic_islet_cell -> hormone_synthesis -> bloodstream -> target_receptor -> metabolic_response
flow exocrine_output:
acinar_synthesis -> pancreatic_duct_system -> duodenum -> luminal_digestion
flow glucose_feedback:
blood_glucose_change -> islet_sensing -> insulin_or_glucagon_response -> glucose_homeostasis
flow secretin_response:
duodenal_acid_exposure -> secretin_signal -> ductal_bicarbonate_secretion -> luminal_neutralisation
flow cck_response:
intestinal_nutrient_signal -> CCK_signal -> acinar_enzyme_secretion -> digestion
6. INFERENCE RULES
R1: type(x,BetaCell) AND PRODUCES(x,Insulin) => endocrine_function(x).
R2: type(x,AcinarCell) AND PRODUCES(x,Amylase) => exocrine_function(x).
R3: PART_OF(x,y) AND PART_OF(y,z) => PART_OF(x,z), provided anatomical granularity permits.
R4: endocrine_function(x) AND LOCATED_IN(x,Pancreas) => PARTICIPATES_IN(x,GlycaemicRegulation), when supported by cell identity.
R5: pathological_observation(x) AND SUPPORTED_BY(x,e) => evidence_linked_finding(x); NOT a clinical diagnosis by itself.
7. CONSTRAINTS AND EXCEPTIONS
- Islets are distributed within the pancreas; do not assert they form a single discrete organ.
- The accessory pancreatic duct and its drainage vary anatomically.
- Proteolytic enzymes are generally secreted as inactive precursors; activation commonly occurs in the small intestine.
- Insulin and glucagon have context-dependent, opposing effects on blood glucose; do not model every action as a universal binary inverse.
- Do not infer disease from a single isolated observation or from a tissue-class label.
- Distinguish general species-level anatomy from individual observations.
8. SEMANTIC_EQUIVALENCE
pancreatic_islet ~ islet_of_Langerhans [context: histology]
exocrine_acinar_cell ~ pancreatic_acinar_cell [context: pancreas]
NOTE: 'pancreas' is NOT equivalent to 'pancreatic islet'; part-whole is not identity.
9. CONFIDENCE
CONFIDENCE:
anatomical_reference: 0.98 [general biological consensus; illustrative, not measured]
cell_hormone_association: 0.98 [general biological consensus; illustrative, not measured]
patient_specific_inference: UNSET [requires clinical evidence]
Policy: Confidence values are descriptive placeholders, not calibrated probabilities. Evidence quality and uncertainty must be recorded for instance-level claims.
10. PROVENANCE
SOURCE: supplied Kireth Research ontology URL (page content unverified)
MODEL_BASIS: general anatomy, histology and physiology knowledge
DERIVATION: explicitly distinguish asserted facts, rule-derived claims and hypotheses
EVIDENCE_FIELDS: source_uri, author, publication_date, accessed_date, evidence_type, assertion_id
11. FLOW_HASH
FLOW_HASH.algorithm: SHA-256
FLOW_HASH.canonicalisation: UTF-8, LF newlines, stable ordering of type/relation/rule identifiers
FLOW_HASH.value: COMPUTE_AT_INGESTION (not precomputed)
12. UPDATE_MODEL
UPDATE_MODEL.version: 1.0
UPDATE_MODEL.strategy: append_only_revision_log
UPDATE_MODEL.triggers: new anatomical evidence, revised nomenclature, corrected relationships, source updates
UPDATE_MODEL.validation: type_check + constraint_check + provenance_check + regression_tests
UPDATE_MODEL.conflict_policy: retain contradictory claims with provenance pending adjudication
13. AI_CONSUMPTION
AI_CONSUMPTION.format: plain_text_flow_algebra
AI_CONSUMPTION.entry_entity: Pancreas
AI_CONSUMPTION.operations: entity_resolution, typed_graph_traversal, rule_evaluation, uncertainty_aware_retrieval
AI_CONSUMPTION.guardrails: no unsupported clinical diagnosis; preserve anatomical context; cite evidence for instance claims
AI_CONSUMPTION.output: typed_entities, relations, inferred_facts, confidence, provenance, revision
14. VALIDATION TESTS
T1: PRODUCES(BetaCell,Insulin) => PASS
T2: PRODUCES(AlphaCell,Glucagon) => PASS
T3: PART_OF(PancreaticTail,Pancreas) => PASS
T4: equivalent(Pancreas,EndocrinePancreas) => FAIL (part-whole distinction)
T5: infer_diagnosis_from_single_marker => BLOCK
END FLOW ALGEBRA
Download Code
Copy to Clipboard