FLOW ALGEBRA
TITLE: Memory Immune Cell Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Immune System Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/memory-immune-cell-ontology.html
STATUS: Topic-based formalisation; source page content not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
01. ONTOLOGY
ontology MemoryImmuneCellOntology extends ImmuneCellOntology
entity MemoryImmuneCell <: ImmuneCell
meaning: immune cell with a persistent, experience-associated state that can support an altered response upon subsequent stimulation.
scope: adaptive memory T and B cells; separately distinguish innate trained immunity and memory-like NK populations.
02. TYPED ENTITIES
entity Antigen: MolecularEntity
entity Epitope: AntigenicDeterminant
entity AntigenPresentingCell: ImmuneCell
entity MemoryBCell: MemoryImmuneCell & BCell
entity MemoryTCell: MemoryImmuneCell & TCell
entity CentralMemoryTCell: MemoryTCell
entity EffectorMemoryTCell: MemoryTCell
entity TissueResidentMemoryTCell: MemoryTCell
entity StemCellLikeMemoryTCell: MemoryTCell
entity MemoryCD4TCell: MemoryTCell
entity MemoryCD8TCell: MemoryTCell
entity LongLivedPlasmaCell: PlasmaCell
entity GerminalCentreBCell: BCell
entity NaiveLymphocyte: Lymphocyte
entity EffectorLymphocyte: Lymphocyte
entity MemoryLikeNKCell: NaturalKillerCell
entity Receptor: MolecularEntity
entity BCellReceptor: Receptor
entity TCellReceptor: Receptor
entity Cytokine: SignallingMolecule
entity IL7: Cytokine
entity IL15: Cytokine
entity LymphoidOrgan: AnatomicalEntity
entity TissueNiche: AnatomicalEntity
entity ExposureEvent: BiologicalEvent
entity RecallResponse: ImmuneProcess
entity ClonalExpansion: ImmuneProcess
entity Differentiation: BiologicalProcess
entity AffinityMaturation: ImmuneProcess
entity SomaticHypermutation: ImmuneProcess
entity ClassSwitchRecombination: ImmuneProcess
entity ImmuneTolerance: ImmuneProcess
entity ImmuneExhaustion: CellState
entity CellProvenance: MetadataEntity
entity EvidenceRecord: MetadataEntity
03. TYPE CONSTRAINTS
MemoryBCell is_a BCell
MemoryTCell is_a TCell
LongLivedPlasmaCell is_not_a MemoryBCell
MemoryLikeNKCell is_not_a MemoryTCell
MemoryImmuneCell does_not_imply permanent_survival
MemoryImmuneCell does_not_imply protective_immunity
MemoryImmuneCell does_not_imply pathogen_specificity_without_evidence
04. RELATIONSHIPS
relation derives_from(MemoryImmuneCell, PrecursorCell)
relation recognises(Lymphocyte, Antigen)
relation binds(Receptor, Epitope)
relation activated_by(ImmuneCell, BiologicalStimulus)
relation differentiates_into(ImmuneCell, ImmuneCell)
relation persists_in(MemoryImmuneCell, TissueNiche)
relation circulates_through(MemoryImmuneCell, AnatomicalEntity)
relation responds_to(MemoryImmuneCell, ExposureEvent)
relation produces(ImmuneCell, Cytokine)
relation supports_survival(Cytokine, MemoryImmuneCell)
relation presents(AntigenPresentingCell, Antigen)
relation has_provenance(MemoryImmuneCell, CellProvenance)
relation supported_by(Assertion, EvidenceRecord)
05. STATE MODEL
state Naive
state Primed
state Activated
state Effector
state Memory
state Recalled
state Contracting
state Apoptotic
state Exhausted
transition Naive -> Primed when antigen_recognition AND appropriate_context
transition Primed -> Activated when costimulation AND signalling_sufficient
transition Activated -> Effector when differentiation_conditions_met
transition Effector -> Memory when memory_fate_acquired AND survives_contraction
transition Memory -> Recalled when cognate_stimulation AND activation_requirements_met
transition Recalled -> Effector when functional_reactivation
transition Effector -> Apoptotic when contraction_and_cell_death
note: pathways are context-dependent, not obligatory linear histories.
06. MEMORY T-CELL SUBTYPES
CentralMemoryTCell: lymphoid-homing-associated phenotype; markers depend on species and context.
EffectorMemoryTCell: circulating effector-memory-associated phenotype.
TissueResidentMemoryTCell: tissue-retained memory-associated phenotype.
StemCellLikeMemoryTCell: self-renewal-associated memory phenotype.
MemoryCD4TCell: helper or other CD4-lineage memory states.
MemoryCD8TCell: cytotoxic-lineage memory states.
rule TissueResidentMemoryTCell(x) -> MemoryTCell(x)
rule CentralMemoryTCell(x) -> MemoryTCell(x)
rule EffectorMemoryTCell(x) -> MemoryTCell(x)
constraint: marker_expression_alone != definitive_subtype_assignment
07. MEMORY B-CELL MECHANISMS
process antigen_encounter -> activation -> context_dependent_germinal_centre_or_extrafollicular_response
process germinal_centre_reaction -> selection_and_differentiation -> memory_B_cell_or_plasma_cell_fates
process recall -> memory_B_cell_activation -> proliferation_and_or_plasma_cell_differentiation
rule MemoryBCell(x) AND cognate_antigen_present(x) AND suitable_signals(x) -> possible_recall_activation(x)
constraint: class_switched != necessary_for_all_memory_B_cells
constraint: affinity_maturation != universal_for_all_memory_B_cells
08. QUANTITATIVE MODEL
# Illustrative population dynamics; not universal measured laws.
N_m(t): memory-cell count at time t
p_m: effective proliferation rate [time^-1]
d_m: effective loss rate [time^-1]
s_m(t): source or recruitment rate [cells/time]
dN_m/dt = (p_m - d_m) * N_m + s_m(t)
# Phenomenological antigen-driven recall model.
A(t): antigen stimulus [arbitrary concentration units]
K_A: half-activation scale, same units as A
h: dimensionless Hill coefficient, h > 0
f(A) = A^h / (K_A^h + A^h)
R(t) = R_max * f(A(t))
constraint: R_max >= 0 AND K_A > 0 AND A >= 0
note: parameters require cell-type, tissue, assay and organism calibration.
# Clonal diversity measure for observed repertoire.
p_i: frequency of clone i; sum_i(p_i) = 1
H = -sum_i(p_i * ln(p_i)) for p_i > 0
note: H is Shannon diversity, not a direct measure of protective immunity.
09. FORMAL INFERENCE
rule MemoryBCell(x) -> MemoryImmuneCell(x)
rule MemoryTCell(x) -> MemoryImmuneCell(x)
rule MemoryCD8TCell(x) -> MemoryTCell(x)
rule MemoryCD4TCell(x) -> MemoryTCell(x)
rule cognate_reexposure(x,e) AND competent_memory_state(x) -> recall_response_possible(x,e)
rule observed_recall_response(x,e) -> evidence_for_functional_memory(x,e)
non_rule observed_recall_response(x,e) -> guaranteed_protection(x,e)
non_rule persistent_antibody(a) -> necessarily_persistent_memory_B_cell(a)
non_rule antigen_exposure(e) -> necessarily_memory_formation(e)
10. SEMANTIC_EQUIVALENCE
canonical: Memory Immune Cell
aliases: immunological memory cell; immune memory cell
related_not_equivalent: long-lived plasma cell; memory-like natural killer cell; trained innate immune cell
subclass_not_equivalent: memory B cell; memory T cell; central memory T cell; tissue-resident memory T cell
semantic_equivalence_requires: same biological scope, lineage, state and evidence context
11. CONFIDENCE
confidence_scale: [0.0, 1.0]
confidence_inputs: evidence_quality, assay_specificity, lineage_validation, replication, context_match
confidence(assertion) = calibrated_evidence_assessment(assertion, evidence_records)
constraint: no confidence value is assigned without a documented evidence basis
constraint: confidence != biological_probability_without_calibration
12. RECURSIVE_FLOW
flow classify(sample):
identify species, tissue, assay and timepoint
resolve cell lineage and receptor features
evaluate phenotypic and functional memory evidence
assign supported subtype or retain unresolved classification
record provenance and uncertainty
re_evaluate when new evidence arrives
end
flow trace_recall(memory_cell, exposure):
verify cognate relationship when applicable
assess activation context and tissue localisation
track proliferation, cytokine output and differentiation
distinguish functional recall from inferred protection
update temporal state and evidence provenance
end
13. FLOW_HASH
FLOW_HASH.algorithm: SHA-256
FLOW_HASH.input: canonical UTF-8 representation of ontology version, entities, relations, rules and provenance
FLOW_HASH.value: COMPUTE_ON_PUBLICATION
constraint: never claim a computed hash without actual canonicalisation and hashing
14. UPDATE_MODEL
update_trigger: new evidence, taxonomy revision, conflicting marker evidence, new subtype, revised quantitative parameter
update_actions: validate -> compare -> version -> recalculate_confidence -> regenerate_hash -> publish
preserve: historical_versions, provenance, retracted_claims, source_attribution
15. AI_CONSUMPTION
output_format: typed knowledge graph plus human-readable Flow Algebra
required_fields: entity_id, canonical_label, entity_type, relation, source, context, confidence_status, version
reasoning_policy: evidence-aware, species-aware, temporally contextual, uncertainty-preserving
prohibited_inference: subtype_by_single_marker, immunity_by_memory_presence, clinical_outcome_without_evidence
interoperability: ontology mappings require explicit provenance and reviewed equivalence
16. VALIDATION
check: all entities and relations typed
check: no contradictory lineage assertions
check: evidence links available for empirical claims
check: quantitative units consistent
check: inferred outcomes not presented as experimentally observed
check: classification is revisable
END FLOW ALGEBRA
Download Code
Copy to Clipboard