FLOW ALGEBRA
T CELL ONTOLOGY
Kireth Semantic Library | Biological Entities / Immune System Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/t-cell-ontology.html
Status: Topic-based formalisation; live source page not independently verified.
Version: 1.0 | Date: 2026-10-19 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
01. PURPOSE
flow "TCellOntology" v1.0
domain: immunology
scope: T-cell identity, differentiation, antigen recognition, activation, effector function, memory and regulation
semantics: typed, context-aware, evidence-qualified
execution: declarative inference specification; not a validated biological simulator
02. ENTITY TYPES
entity ImmuneCell <: BiologicalCell
entity Lymphocyte <: ImmuneCell
entity TCell <: Lymphocyte
entity NaiveTCell <: TCell
entity ActivatedTCell <: TCell
entity EffectorTCell <: TCell
entity MemoryTCell <: TCell
entity CD4TCell <: TCell
entity CD8TCell <: TCell
entity RegulatoryTCell <: CD4TCell
entity HelperTCell <: CD4TCell
entity CytotoxicTCell <: CD8TCell
entity Th1Cell <: HelperTCell
entity Th2Cell <: HelperTCell
entity Th17Cell <: HelperTCell
entity TfhCell <: HelperTCell
entity CentralMemoryTCell <: MemoryTCell
entity EffectorMemoryTCell <: MemoryTCell
entity TissueResidentMemoryTCell <: MemoryTCell
entity GammaDeltaTCell <: TCell
entity AlphaBetaTCell <: TCell
entity AntigenPresentingCell <: ImmuneCell
entity DendriticCell <: AntigenPresentingCell
entity PeptideAntigen <: MolecularEntity
entity MHCClassI <: MolecularComplex
entity MHCClassII <: MolecularComplex
entity PeptideMHCComplex <: MolecularComplex
entity TCellReceptor <: Receptor
entity CD3Complex <: MolecularComplex
entity CD4Coreceptor <: Receptor
entity CD8Coreceptor <: Receptor
entity CD28 <: Receptor
entity CD80CD86 <: Ligand
entity CTLA4 <: InhibitoryReceptor
entity PD1 <: InhibitoryReceptor
entity PDL1 <: Ligand
entity Cytokine <: SignallingMolecule
entity IL2 <: Cytokine
entity IFNGamma <: Cytokine
entity IL4 <: Cytokine
entity IL17 <: Cytokine
entity IL10 <: Cytokine
entity TGFbeta <: Cytokine
entity Perforin <: EffectorMolecule
entity Granzyme <: EffectorMolecule
entity TCellClone <: CellPopulation
entity LymphoidOrgan <: AnatomicalEntity
entity Thymus <: LymphoidOrgan
entity LymphNode <: LymphoidOrgan
entity Tissue <: AnatomicalEntity
entity ImmuneSynapse <: CellularInterface
entity ActivationEvent <: BiologicalEvent
entity DifferentiationEvent <: BiologicalEvent
entity CytotoxicEvent <: BiologicalEvent
entity EvidenceRecord <: ProvenanceEntity
03. TYPED ATTRIBUTES
TCell.id: Identifier
TCell.species: Taxon
TCell.subtype: CellType
TCell.location: AnatomicalEntity
TCell.activation_state: {naive, activated, effector, memory, exhausted, anergic, apoptotic}
TCell.lineage: {alpha_beta, gamma_delta, unresolved}
TCell.TCR_specificity: AntigenSpecificity?
TCell.clonotype: Identifier?
TCell.marker_expression: Map[Marker, Measurement]
TCell.cytokine_profile: Map[Cytokine, Measurement]
TCell.proliferation_rate: Quantity[1/time]?
TCell.viability: Probability?
TCell.observation_time: Timestamp
TCell.evidence: Set[EvidenceRecord]
TCell.confidence: Probability
04. RELATIONSHIPS
TCell IS_A Lymphocyte
TCell DEVELOPS_IN Thymus [primarily for conventional T cells]
TCell EXPRESSES TCellReceptor
TCell EXPRESSES CD3Complex
CD4TCell TYPICALLY_EXPRESSES CD4Coreceptor
CD8TCell TYPICALLY_EXPRESSES CD8Coreceptor
AlphaBetaTCell RECOGNISES PeptideMHCComplex [canonical recognition]
CD8TCell TYPICALLY_RECOGNISES peptide:MHCClassI
CD4TCell TYPICALLY_RECOGNISES peptide:MHCClassII
AntigenPresentingCell PRESENTS PeptideAntigen
TCell FORMS ImmuneSynapse WITH AntigenPresentingCell
CD28 BINDS CD80CD86
CTLA4 BINDS CD80CD86
PD1 BINDS PDL1
ActivatedTCell MAY_SECRETE IL2
Th1Cell MAY_SECRETE IFNGamma
Th2Cell MAY_SECRETE IL4
Th17Cell MAY_SECRETE IL17
RegulatoryTCell MAY_SECRETE IL10
CytotoxicTCell MAY_RELEASE Perforin
CytotoxicTCell MAY_RELEASE Granzyme
MemoryTCell DERIVES_FROM antigen-experienced:TCell
TCell LOCATED_IN Tissue
TCell MEMBER_OF TCellClone
05. TYPE AND BIOLOGICAL CONSTRAINTS
constraint CD4_and_CD8_are_not_absolute_lineage_exclusions
constraint marker_expression_alone_does_not_prove_cell_function
constraint antigen_recognition_depends_on_receptor_and_presentation_context
constraint gamma_delta_T_cells_need_not_follow_classical_peptide_MHC_rules
constraint activation_requires_context_and_may_be_tolerogenic_or_productive
constraint differentiation_is_context_dependent_and_not_always_irreversible
constraint exhausted_is_not_synonymous_with_apoptotic_or_anergic
constraint immune_memory_requires_evidence_of_antigen_experience
constraint TCR_binding_does_not_alone_establish_clinical_protection
constraint evidence_and_species_context_required_for_generalisation
06. STATE TRANSITIONS
transition TCellDevelopment:
precursor -> thymic_development -> naive_T_cell
guards: survival_and_selection_conditions
transition AntigenEncounter:
naive -> antigen_engaged
guards: cognate_recognition_and_context
transition ProductiveActivation:
antigen_engaged -> activated
guards: sufficient_signalling_and_costimulation
transition Expansion:
activated -> proliferating_clone
effects: clone_population_increase
transition EffectorDifferentiation:
activated -> effector
guards: cytokine_and_transcriptional_context
transition MemoryFormation:
antigen_experienced -> memory
guards: survival_and_memory_programme
transition Contraction:
expanded_population -> reduced_population
mechanism: cell_death_and_survival_selection
transition FunctionalExhaustion:
persistent_stimulation -> exhaustion_like_state
guards: chronic_context_and_supporting_markers
transition RegulatorySuppression:
regulatory_cell + target_cell -> modified_target_response
guards: contact_or_soluble_mediator_context
07. INFERENCE RULES
rule R01:
IF cell IS_A TCell AND cell EXPRESSES TCellReceptor
THEN classify(cell, TCell, evidence_weighted)
rule R02:
IF cell EXPRESSES CD4Coreceptor AND cell EXPRESSES CD3Complex
THEN candidate_subtype(cell, CD4TCell)
NOT definitive_without_additional_evidence
rule R03:
IF cell EXPRESSES CD8Coreceptor AND cell EXPRESSES CD3Complex
THEN candidate_subtype(cell, CD8TCell)
rule R04:
IF cognate_TCR_binding AND costimulation AND permissive_context
THEN candidate_transition(naive, activated)
rule R05:
IF cytotoxic_T_cell AND target_recognition AND degranulation
THEN candidate_event(CytotoxicEvent)
rule R06:
IF FOXP3_expression AND suppressive_function AND supporting_context
THEN candidate_subtype(RegulatoryTCell)
rule R07:
IF prior_antigen_exposure AND persistence AND recall_response
THEN candidate_subtype(MemoryTCell)
rule R08:
IF repeated_antigen_exposure AND inhibitory_receptor_expression
THEN investigate(exhaustion)
NOT assert(exhaustion)
08. QUANTITATIVE MODELS
model ClonalExpansion:
dN/dt = (p - d) * N
N: clone_size [cells]
p: proliferation_rate [1/time]
d: loss_rate [1/time]
assumption: homogeneous_population_and_constant_rates
model SaturableActivation:
A(L) = A_max * L / (K_half + L)
L: effective_stimulus [model_specific_units]
K_half: half_response_stimulus [same_units_as_L]
assumption: phenomenological_response_not_universal_TCR_law
model CytokineDynamics:
dC/dt = q * N_active / V - k_clear * C
C: cytokine_concentration
q: secretion_per_cell_per_time
V: effective_distribution_volume
k_clear: clearance_rate [1/time]
model PopulationBalance:
dN_memory/dt = f_memory * N_effector - d_memory * N_memory
assumption: simplified_compartment_model
model ResponseProbability:
P(response | evidence, context) = calibrated_inference(evidence, context)
note: requires empirical calibration; no fixed universal coefficients
09. SEMANTIC EQUIVALENCE
semantic_equivalence:
"T lymphocyte" <=> "T cell" [common_usage]
"CD4-positive T lymphocyte" <=> "CD4+ T cell" [marker_context]
"CD8-positive T lymphocyte" <=> "CD8+ T cell" [marker_context]
"cytotoxic T lymphocyte" ~= "cytotoxic CD8 T cell" [common_but_not_universal]
"Treg" <=> "regulatory T cell" [abbreviation]
semantic_difference:
TCell != BCell
TCell != NaturalKillerCell
activation != proliferation
antigen_specificity != immune_protection
anergy != exhaustion
effector_cell != memory_cell [state_distinction_with_overlap]
10. CONFIDENCE
CONFIDENCE:
range: [0, 1]
inputs: [assay_quality, marker_specificity, functional_evidence, sample_context, replication, provenance]
combine: calibrated_evidence_fusion
uncertainty: preserve_conflicting_evidence
missing_data: unknown_not_false
thresholds: application_defined_not_universal
11. PROVENANCE
provenance:
source_url: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/t-cell-ontology.html
source_verification: not_verified
author_credit: Mark Higgins — Sky (Recursive AI)
model_status: conceptual_formalisation
evidence_requirements: [publication_or_dataset, assay, species, tissue, time, methodology]
12. FLOW_HASH
FLOW_HASH:
algorithm: SHA-256
canonicalisation: UTF-8 + LF + deterministic_field_order
hash_input: canonicalised_flow_without_hash_value
value: compute_on_publication
note: no_hash_claimed_without_execution
13. UPDATE_MODEL
UPDATE_MODEL:
trigger: [new_evidence, ontology_revision, assay_revision, terminology_change, contradiction]
steps:
- ingest_evidence
- validate_provenance
- reconcile_entity_types
- reassess_relationships
- recompute_confidence
- run_constraint_checks
- version_changes
- regenerate_FLOW_HASH
preserve: [previous_versions, conflicting_claims, uncertainty]
14. RECURSIVE FLOW
recursive_flow TCellReasoning:
INPUT: observations, organism_context, tissue_context, evidence
NORMALISE: markers, synonyms, units, temporal_state
TYPE: assign_candidate_T_cell_entities
LINK: receptor_antigen_signalling_and_lineage_relations
VALIDATE: biological_constraints
INFER: activation_differentiation_and_function_hypotheses
SCORE: confidence_with_provenance
IF unresolved_or_conflicting THEN request_more_evidence
OUTPUT: evidence_qualified_entity_graph
STOP: stable_graph_or_iteration_limit
15. AI_CONSUMPTION
AI_CONSUMPTION:
format: typed_semantic_flow
applications: [knowledge_graphs, immunology_search, hypothesis_generation, teaching, evidence_integration]
outputs: [entity_types, relations, candidate_states, rules, uncertainty, provenance]
restrictions:
- do_not_treat_candidate_inferences_as_confirmed_diagnoses
- do_not_infer_clinical_efficacy_from_cell_markers_alone
- retain_species_tissue_and_assay_context
- do_not_extrapolate_unvalidated_models_to_patient_decisions
human_review: required_for_clinical_interpretation
END FLOW ALGEBRA
Download Code
Copy to Clipboard