FLOW ALGEBRA
TITLE: Pancreatic Cell Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Specialised Cell Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/specialised-cell-entities/pancreatic-cell-ontology.html
STATUS: Topic-based formalisation; source page not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
# PURPOSE
flow PancreaticCellOntology v1.0 {
objective: represent pancreatic cell identities, structures, secretory functions,
developmental relationships, regulatory feedback, and evidence.
scope: endocrine and exocrine pancreatic cell biology.
constraint: distinguish observed facts from hypotheses and model predictions.
}
# TYPED ENTITIES
entity PancreaticCell <: SpecialisedCell
entity EndocrineCell <: PancreaticCell
entity ExocrineCell <: PancreaticCell
entity BetaCell <: EndocrineCell
entity AlphaCell <: EndocrineCell
entity DeltaCell <: EndocrineCell
entity PPCell <: EndocrineCell
entity EpsilonCell <: EndocrineCell
entity AcinarCell <: ExocrineCell
entity DuctalCell <: ExocrineCell
entity CentroacinarCell <: DuctalCell
entity PancreaticIslet <: CellCluster
entity PancreaticAcinus <: CellCluster
entity PancreaticDuct <: AnatomicalStructure
entity SecretoryGranule <: Vesicle
entity Insulin <: PeptideHormone
entity Glucagon <: PeptideHormone
entity Somatostatin <: PeptideHormone
entity PancreaticPolypeptide <: PeptideHormone
entity Ghrelin <: PeptideHormone
entity DigestiveEnzyme <: Protein
entity Bicarbonate <: ChemicalSpecies
entity Glucose <: Metabolite
entity CalciumIon <: Ion
entity ATP <: EnergyCarrier
entity EvidenceRecord <: ProvenanceEntity
# RELATIONSHIPS
relationship is_a(Entity, Class)
relationship part_of(Entity, Structure)
relationship located_in(Entity, Structure)
relationship secretes(Cell, Substance)
relationship responds_to(Cell, Signal)
relationship regulates(Substance, Process)
relationship develops_from(Cell, Precursor)
relationship communicates_with(Cell, Cell)
relationship supported_by(Claim, EvidenceRecord)
relationship measured_under(Measurement, Context)
# CORE ASSERTIONS
assert is_a(BetaCell, EndocrineCell)
assert is_a(AlphaCell, EndocrineCell)
assert is_a(DeltaCell, EndocrineCell)
assert is_a(AcinarCell, ExocrineCell)
assert is_a(DuctalCell, ExocrineCell)
assert secretes(BetaCell, Insulin)
assert secretes(AlphaCell, Glucagon)
assert secretes(DeltaCell, Somatostatin)
assert secretes(PPCell, PancreaticPolypeptide)
assert secretes(EpsilonCell, Ghrelin)
assert secretes(AcinarCell, DigestiveEnzyme)
assert secretes(DuctalCell, Bicarbonate)
# CELL CLASSIFICATION
flow classify_pancreatic_cell(cell, markers, anatomy, function) -> Classification {
candidates := match_lineage_markers(markers)
candidates := refine_by_location(candidates, anatomy)
candidates := refine_by_secretory_profile(candidates, function)
return rank(candidates, evidence_quality, context)
}
rule R01: secretes(c, Insulin) AND endocrine_marker(c) -> candidate(c, BetaCell)
rule R02: secretes(c, Glucagon) AND endocrine_marker(c) -> candidate(c, AlphaCell)
rule R03: secretes(c, Somatostatin) AND endocrine_marker(c) -> candidate(c, DeltaCell)
rule R04: enzyme_granules(c) AND acinar_markers(c) -> candidate(c, AcinarCell)
rule R05: ductal_markers(c) AND bicarbonate_transport(c) -> candidate(c, DuctalCell)
rule R06: candidate(c, type) != confirmed_identity(c, type)
# ENDOCRINE REGULATION
flow glucose_stimulated_insulin_secretion(beta, glucose) {
glucose_metabolism -> ATP_ADP_ratio_increase
ATP_ADP_ratio_increase -> KATP_channel_closure
KATP_channel_closure -> membrane_depolarisation
membrane_depolarisation -> voltage_gated_calcium_entry
calcium_entry -> insulin_granule_exocytosis
qualifiers: glucose sensing and coupling vary with species and state.
}
flow glucagon_secretion(alpha, context) {
input: glucose_state, paracrine_signals, neural_signals, nutrient_state
output: context_dependent_glucagon_release
constraint: no single universal glucose-only rule.
}
flow somatostatin_feedback(delta) {
delta_cell_activity -> somatostatin_release
somatostatin_release -> modulation_of_neighbouring_islet_secretion
}
# EXOCRINE REGULATION
flow acinar_secretion(acinar, stimulus) {
stimulus -> intracellular_signalling
intracellular_signalling -> secretory_granule_exocytosis
output: digestive_enzyme_or_zymogen_secretion
}
flow ductal_secretion(ductal, stimulus) {
stimulus -> epithelial_ion_transport
epithelial_ion_transport -> bicarbonate_rich_fluid_secretion
output: ductal_fluid_and_pH_regulation
}
# QUANTITATIVE MODELS
model HormoneBalance {
dH_dt = secretion_rate - clearance_rate
units: hormone_concentration_per_time
note: volume and distribution terms required for physical parameterisation.
}
model SecretoryResponse {
response = maximum_response * stimulus^hill_coefficient /
(half_maximum^hill_coefficient + stimulus^hill_coefficient)
assumptions: empirical saturating response, positive parameters.
}
model CalciumDynamics {
dCa_dt = influx_rate - extrusion_rate - sequestration_rate + release_rate
constraint: compartment-specific fluxes and consistent units.
}
model CellPopulation {
dN_dt = proliferation_rate - death_rate + influx_rate - outflux_rate
constraint: differentiation and lineage changes tracked separately.
}
# STATE TRANSITIONS
state Quiescent
state Stimulated
state Secreting
state Recovering
state Stressed
state Injured
state Apoptotic
transition Quiescent -> Stimulated when appropriate_stimulus
transition Stimulated -> Secreting when secretion_threshold_met
transition Secreting -> Recovering when stimulus_recedes
transition Recovering -> Quiescent when homeostasis_restored
transition any_viable_state -> Stressed when sustained_cellular_stress
transition Stressed -> Injured when damage_exceeds_repair
transition Injured -> Apoptotic when apoptotic_program_activated
constraint: transitions are context-dependent, not deterministic clinical predictions.
# SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE {
"pancreatic beta cell" ~= "islet beta cell" context: endocrine_pancreas
"pancreatic alpha cell" ~= "islet alpha cell" context: endocrine_pancreas
"pancreatic acinar cell" ~= "exocrine acinar cell" context: pancreas
"pancreatic cell" != "beta cell" reason: parent_vs_subtype
"pancreatic ductal cell" != "pancreatic acinar cell" reason: distinct_function
"pancreatic islet" != "pancreatic endocrine cell" reason: cluster_vs_cell
}
# LOGICAL INFERENCE
rule R07: is_a(x, BetaCell) -> is_a(x, EndocrineCell)
rule R08: is_a(x, EndocrineCell) -> is_a(x, PancreaticCell)
rule R09: is_a(x, AcinarCell) -> is_a(x, ExocrineCell)
rule R10: is_a(x, ExocrineCell) -> is_a(x, PancreaticCell)
rule R11: observed_secretion(x, h) -> evidence_for_function(x, h)
rule R12: evidence_for_function(x, h) != sufficient_for_unique_cell_identity(x)
rule R13: conflicting_markers(x) -> flag_for_review(x)
rule R14: inferred(x, p) -> require_provenance(x, p)
# CONFIDENCE
CONFIDENCE {
range: [0.0, 1.0]
inputs: marker_specificity, assay_quality, biological_context,
reproducibility, provenance, contradictory_evidence
combine: calibrated_evidence_aggregation
policy: never treat an arbitrary numeric score as experimentally validated.
levels: high | moderate | low | unresolved
}
# PROVENANCE
PROVENANCE {
required: source_id, claim_id, evidence_type, observation_date,
organism, tissue, assay, curator, revision
optional: cell_state, disease_context, experimental_conditions
rule: preserve source-specific terminology and species differences.
}
# RECURSIVE FLOW
flow RECURSIVE_CELL_REASONING(entity, depth, visited) {
if depth <= 0 OR entity in visited: return
visited := visited UNION {entity}
validate_type(entity)
inspect_part_of_and_lineage(entity)
inspect_secretory_and_regulatory_relations(entity)
reconcile_conflicting_evidence(entity)
emit_provenance_and_confidence(entity)
for each related in bounded_related_entities(entity):
RECURSIVE_CELL_REASONING(related, depth - 1, visited)
}
# FLOW HASH
FLOW_HASH {
method: SHA-256
input: canonical_serialisation(ontology_version, entities, relations,
rules, models, provenance_policy)
property: deterministic_under_stable_canonicalisation
value: COMPUTE_AT_INGESTION
}
# UPDATE MODEL
UPDATE_MODEL {
trigger: new_validated_evidence | ontology_revision | terminology_update
steps: ingest -> validate -> compare -> version -> reclassify -> audit
preserve: historical_versions, provenance, unresolved_conflicts
reject: unsupported_equivalence, untyped_relation, missing_provenance
}
# AI CONSUMPTION
AI_CONSUMPTION {
formats: typed_graph | structured_flow | text
tasks: classification, knowledge_retrieval, explanation,
hypothesis_generation, cross_ontology_linking
outputs: entity_id, type, relations, evidence, confidence, version
guardrails: separate established biology from inferred hypotheses;
no autonomous clinical diagnosis or treatment recommendation.
}
# VALIDATION
validate all_entities_have_types
validate relation_domain_and_range
validate units_in_quantitative_models
validate context_for_semantic_equivalence
validate no_false_identity_from_single_marker
validate provenance_for_nontrivial_claims
validate stable_hash_after_canonicalisation
END FLOW ALGEBRA
Download Code
Copy to Clipboard