FLOW ALGEBRA
ONTOLOGY: Lymphocyte Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Immune System Entities
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/lymphocyte-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
STATUS: Topic-based formalisation; source page not independently verified
1. PURPOSE
Model lymphocyte identity, lineage, phenotype, activation, trafficking, effector functions, memory, tolerance and context-dependent immune relationships.
2. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE Cell <: BiologicalEntity
TYPE ImmuneCell <: Cell
TYPE Lymphocyte <: ImmuneCell
TYPE TCell <: Lymphocyte
TYPE BCell <: Lymphocyte
TYPE NKCell <: Lymphocyte
TYPE InnateLymphoidCell <: Lymphocyte
TYPE CD4TCell <: TCell
TYPE CD8TCell <: TCell
TYPE RegulatoryTCell <: TCell
TYPE MemoryTCell <: TCell
TYPE PlasmaCell <: BCell
TYPE MemoryBCell <: BCell
TYPE Antigen <: BiologicalEntity
TYPE AntigenPresentingCell <: ImmuneCell
TYPE Receptor <: BiologicalEntity
TYPE Cytokine <: BiologicalEntity
TYPE Tissue <: BiologicalEntity
TYPE LymphoidOrgan <: Tissue
TYPE CellState
TYPE ImmuneEvent
TYPE Observation
TYPE Evidence
TYPE TimePoint
TYPE Context
3. CANONICAL ENTITIES
ENTITY lymphocyte : Lymphocyte
ENTITY t_lymphocyte : TCell
ENTITY b_lymphocyte : BCell
ENTITY natural_killer_cell : NKCell
ENTITY innate_lymphoid_cell : InnateLymphoidCell
ENTITY helper_t_cell : CD4TCell
ENTITY cytotoxic_t_cell : CD8TCell
ENTITY regulatory_t_cell : RegulatoryTCell
ENTITY memory_t_cell : MemoryTCell
ENTITY plasma_cell : PlasmaCell
ENTITY memory_b_cell : MemoryBCell
ENTITY t_cell_receptor : Receptor
ENTITY b_cell_receptor : Receptor
ENTITY antigen : Antigen
ENTITY lymph_node : LymphoidOrgan
ENTITY thymus : LymphoidOrgan
ENTITY bone_marrow : LymphoidOrgan
ENTITY spleen : LymphoidOrgan
4. TAXONOMY
SUBCLASS(TCell, Lymphocyte)
SUBCLASS(BCell, Lymphocyte)
SUBCLASS(NKCell, Lymphocyte)
SUBCLASS(InnateLymphoidCell, Lymphocyte)
SUBCLASS(CD4TCell, TCell)
SUBCLASS(CD8TCell, TCell)
SUBCLASS(RegulatoryTCell, TCell)
SUBCLASS(MemoryTCell, TCell)
SUBCLASS(PlasmaCell, BCell)
SUBCLASS(MemoryBCell, BCell)
NOTE: Cell identity, differentiation state and functional phenotype are separate axes.
NOTE: Innate lymphoid cells include NK cells in some classification schemes; taxonomy is context/version dependent.
5. TYPED RELATIONSHIPS
REL develops_from(Cell, Cell)
REL differentiates_into(Cell, Cell)
REL expresses(Cell, Receptor)
REL recognises(Cell, Antigen)
REL presents(AntigenPresentingCell, Antigen)
REL activated_by(Cell, ImmuneEvent)
REL secretes(Cell, Cytokine)
REL migrates_to(Cell, Tissue)
REL resides_in(Cell, Tissue)
REL interacts_with(Cell, Cell)
REL suppresses(Cell, Cell)
REL kills(Cell, Cell)
REL proliferates_in(Cell, Context)
REL supported_by(Observation, Evidence)
REL observed_at(Observation, TimePoint)
REL observed_in(Observation, Context)
6. LINEAGE AND MATURATION
FLOW haematopoietic_stem_cell -> lymphoid_progenitor -> lymphocyte_lineage
FLOW t_lineage_precursor -> thymic_maturation -> mature_t_cell
FLOW b_lineage_precursor -> b_cell_maturation -> mature_b_cell
FLOW naive_b_cell -> activation -> germinal_centre_or_extrafollicular_response
FLOW activated_b_cell -> plasma_cell_or_memory_b_cell
FLOW naive_t_cell -> antigen_dependent_activation -> effector_or_memory_t_cell
CONSTRAINT: Lineage flows are simplified abstractions, not universal single-path developmental trajectories.
7. ANTIGEN RECOGNITION
RULE t_cell_antigen_recognition:
IF expresses(t_cell, t_cell_receptor)
AND cognate_peptide_mhc_presented(t_cell, antigen_presenting_cell)
THEN candidate_tcr_signal(t_cell)
RULE t_cell_full_activation:
IF candidate_tcr_signal(t_cell)
AND appropriate_costimulation(t_cell)
AND permissive_cytokine_context(t_cell)
THEN activation_possible(t_cell)
RULE b_cell_recognition:
IF expresses(b_cell, b_cell_receptor)
AND binds_cognate_antigen(b_cell)
THEN bcr_signal_possible(b_cell)
NOTE: B-cell activation may be T-dependent or T-independent.
NOTE: Receptor binding alone does not guarantee functional activation.
8. EFFECTOR FUNCTIONS
FLOW activated_cd8_t_cell -> target_recognition -> cytotoxic_response
FLOW activated_cd4_t_cell -> context_specific_cytokine_signalling
FLOW activated_b_cell -> antibody_secreting_plasma_cell
FLOW activated_nk_cell -> context_dependent_target_killing
FLOW regulatory_t_cell -> context_dependent_immune_suppression
CONSTRAINT: Cytotoxicity, secretion and suppression depend on activation state, target and environment.
9. CELL-STATE MACHINE
STATE naive
STATE primed
STATE activated
STATE proliferating
STATE effector
STATE memory
STATE anergic
STATE exhausted
STATE apoptotic
TRANSITION naive -> primed WHEN receptor_signal_detected
TRANSITION primed -> activated WHEN activation_requirements_met
TRANSITION activated -> proliferating WHEN growth_signals_present
TRANSITION proliferating -> effector WHEN differentiation_program_active
TRANSITION effector -> memory WHEN survival_and_memory_program_active
TRANSITION activated -> anergic WHEN tolerogenic_conditions_met
TRANSITION effector -> exhausted WHEN chronic_stimulation_context_present
TRANSITION effector -> apoptotic WHEN contraction_signals_dominate
NOTE: States are not always mutually exclusive, linear or irreversible.
10. QUANTITATIVE MODELS
MODEL population_balance:
dN/dt = birth_rate + influx_rate - death_rate - efflux_rate
MODEL clonal_expansion_approximation:
dN/dt = (proliferation_rate - loss_rate) * N
MODEL receptor_occupancy_approximation:
occupancy = ligand_concentration / (Kd + ligand_concentration)
MODEL migration_flux:
J = -D * grad(C) + directed_migration_term
CONSTRAINT: Equations are phenomenological; parameters require experimental definition and units.
CONSTRAINT: Receptor occupancy does not uniquely determine cellular activation.
11. SPATIAL AND TEMPORAL CONTEXT
FLOW bone_marrow -> lymphocyte_development
FLOW thymus -> t_cell_selection_and_maturation
FLOW secondary_lymphoid_organ -> antigen_encounter_and_clonal_response
FLOW circulation <-> lymphoid_tissue <-> peripheral_tissue
REL has_compartment(Cell, Tissue)
REL has_activation_time(Cell, TimePoint)
REL has_lineage_history(Cell, Context)
CONSTRAINT: Tissue localisation varies by lymphocyte subset and physiological state.
12. LOGICAL INFERENCE
RULE memory_candidate:
IF lymphocyte_has_prior_antigen_experience(x)
AND expresses_validated_memory_markers(x)
THEN infer(memory_phenotype_candidate(x))
RULE adaptive_identity:
IF validated_tcr_or_bcr_rearrangement(x)
THEN infer(adaptive_lymphocyte_lineage_candidate(x))
RULE nk_function:
IF nk_cell_identity(x)
AND target_susceptibility_detected(x)
THEN infer(cytotoxic_response_possible(x))
RULE evidence_guard:
IF insufficient_lineage_evidence(x)
THEN classification_status(x) = unresolved
CONSTRAINT: Marker-based classifications require species, assay and tissue context.
13. SEMANTIC_EQUIVALENCE
ALIAS("lymphocyte", Lymphocyte)
ALIAS("T lymphocyte", TCell)
ALIAS("B lymphocyte", BCell)
ALIAS("natural killer cell", NKCell)
SEMANTIC_EQUIVALENCE("T cell", "T lymphocyte", scope=cell_type)
SEMANTIC_EQUIVALENCE("B cell", "B lymphocyte", scope=cell_type)
SEMANTIC_DISTINCTION("NK cell", "cytotoxic T cell", basis=recognition_mechanism)
SEMANTIC_DISTINCTION("plasma cell", "circulating blood plasma", basis=entity_type)
14. CONFIDENCE
CONFIDENCE evidence_based:
score_range: [0.0, 1.0]
inputs: [assay_quality, marker_specificity, lineage_evidence, context_match, replication]
output: calibrated_classification_confidence
RULE confidence_propagation:
confidence(derived_claim) <= min(confidence(required_premises))
UNLESS validated_probabilistic_model_applies
CONSTRAINT: Do not assign numerical certainty without observations and calibration.
15. PROVENANCE
FIELD source_url: URI
FIELD observation_id: string
FIELD evidence_reference: string
FIELD assay_method: string
FIELD species: string
FIELD tissue_context: string
FIELD timestamp: ISO8601
FIELD model_version: string
FIELD inference_method: string
RULE every_empirical_claim -> requires_provenance
16. RECURSIVE FLOW
FLOW lymphocyte_observation
-> typed_entity_classification
-> phenotype_and_lineage_resolution
-> receptor_and_signal_context
-> functional_state_inference
-> evidence_and_confidence_validation
-> graph_update
-> revised_lymphocyte_observation
TERMINATION: Stop when no supported graph change remains or review threshold is reached.
17. FLOW_HASH
FLOW_HASH algorithm: SHA-256
FLOW_HASH canonical_inputs:
- ontology_identifier
- ontology_version
- normalised_typed_entities
- normalised_relationships
- normalised_rules
- source_and_provenance_identifiers
RULE stable_sort_before_hash = true
RULE hash_is_integrity_identifier_not_scientific_validation = true
18. UPDATE_MODEL
UPDATE_MODEL strategy: evidence_gated_versioned_update
UPDATE_MODEL steps:
- validate_new_evidence
- compare_with_current_graph
- detect_type_or_relationship_conflicts
- preserve_prior_version_and_provenance
- revise_supported_claims
- recalculate_affected_confidence
- regenerate_FLOW_HASH
- publish_change_log
RULE unsupported_claims -> quarantine_for_review
19. AI_CONSUMPTION
AI_CONSUMPTION format: typed_semantic_graph
AI_CONSUMPTION capabilities:
- entity_linking
- lymphocyte_subtype_classification
- antigen_recognition_reasoning
- immune_lineage_tracing
- cell_state_transition_reasoning
- context_aware_evidence_retrieval
- provenance_preserving_graph_updates
AI_CONSUMPTION restrictions:
- distinguish observations_from_inferences
- preserve_uncertainty_and_species_context
- do_not_infer_clinical_diagnosis_from_ontology_alone
- require_evidence_for_biomedical_claims
20. VALIDATION
CHECK all_relationship_arguments_match_declared_types
CHECK all_inferences_preserve_provenance
CHECK no_unqualified_equivalence_between_distinct_cell_types
CHECK activation_is_not_inferred_from_single_marker_alone
CHECK quantitative_parameters_have_units_and_context
CHECK update_is_versioned_and_auditable
END FLOW ALGEBRA
Download Code
Copy to Clipboard