FLOW ALGEBRA
TITLE: Macrophage Ontology
VERSION: 4.0
DOMAIN: Biological Entities / Immune System Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/macrophage-ontology.html
STATUS: Topic-based formalisation; source page not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
01. PURPOSE
Represent macrophages as typed immune-cell entities, with explicit lineage, location, phenotype, functions, signalling, state transitions and evidence provenance. This specification is a declarative reasoning model, not executable clinical decision software.
02. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE Cell <: BiologicalEntity
TYPE ImmuneCell <: Cell
TYPE MyeloidCell <: ImmuneCell
TYPE Macrophage <: MyeloidCell
TYPE Monocyte <: MyeloidCell
TYPE TissueResidentMacrophage <: Macrophage
TYPE MonocyteDerivedMacrophage <: Macrophage
TYPE KupfferCell <: TissueResidentMacrophage
TYPE AlveolarMacrophage <: TissueResidentMacrophage
TYPE MicroglialCell <: TissueResidentMacrophage
TYPE Osteoclast <: MyeloidCell # related specialised myeloid lineage; not a universal macrophage subtype
TYPE Pathogen <: BiologicalEntity
TYPE ApoptoticCell <: Cell
TYPE Cytokine <: BiologicalEntity
TYPE Chemokine <: Cytokine
TYPE Receptor <: BiologicalEntity
TYPE Tissue <: BiologicalEntity
TYPE Signal <: Entity
TYPE Process <: Entity
TYPE Observation <: Entity
TYPE Evidence <: Entity
TYPE Context <: Entity
TYPE State <: Entity
TYPE TimePoint
TYPE Quantity[Unit]
TYPE Probability = Real[0,1]
03. CORE ENTITY
ENTITY macrophage_001 : Macrophage
LABEL: "Macrophage"
ALIASES: ["macrophage cell", "tissue macrophage"]
PARENT: MyeloidCell
FEATURES: [phagocytic_capacity, pattern_recognition, cytokine_secretion, antigen_presentation_potential, tissue_homeostasis]
CONTEXT_DEPENDENT: [developmental_origin, tissue_residency, activation_state, marker_expression]
04. RELATIONSHIPS
RELATION is_a(Entity, Type)
RELATION develops_from(Cell, Cell)
RELATION resides_in(Cell, Tissue)
RELATION recognises(Cell, BiologicalEntity)
RELATION expresses(Cell, Receptor)
RELATION secretes(Cell, Cytokine)
RELATION engulfs(Cell, Entity)
RELATION degrades(Cell, Entity)
RELATION presents_antigen_to(Cell, ImmuneCell)
RELATION recruits(Cell, ImmuneCell)
RELATION regulates(Cell, Process)
RELATION participates_in(Cell, Process)
RELATION transitions_to(State, State)
RELATION supported_by(Observation, Evidence)
RELATION observed_under(Observation, Context)
05. ONTOLOGICAL AXIOMS
AXIOM A01: forall m:Macrophage => is_a(m, ImmuneCell)
AXIOM A02: forall m:Macrophage => is_a(m, MyeloidCell)
AXIOM A03: exists m:Macrophage where develops_from(m, Monocyte)
AXIOM A04: NOT forall m:Macrophage => develops_from(m, Monocyte)
AXIOM A05: tissue-resident populations may originate from embryonic progenitors and/or circulating monocytes depending on tissue and conditions
AXIOM A06: functional phenotype is context-sensitive and cannot be inferred from one marker alone
AXIOM A07: macrophage activation is a multidimensional continuum; M1/M2 labels are simplified experimental descriptions, not exhaustive mutually exclusive cell types
06. EXEMPLAR SUBPOPULATIONS
INSTANCE KupfferCell: liver-associated macrophage
INSTANCE AlveolarMacrophage: pulmonary alveolar macrophage
INSTANCE MicroglialCell: central nervous system resident myeloid immune cell
INSTANCE MonocyteDerivedMacrophage: macrophage differentiated from recruited monocyte
NOTE: Microglial identity and developmental origin are distinct from many other tissue macrophages.
07. FUNCTIONAL PROCESSES
PROCESS phagocytosis:
INPUT: [macrophage, target, recognition_context]
STEPS: [recognition, binding, engulfment, phagosome_formation, maturation, lysosomal_processing]
OUTPUT: [processed_material, response_signals]
CONDITIONS: target identity, opsonisation, receptor state and local environment
PROCESS efferocytosis:
INPUT: [macrophage, apoptotic_cell]
STEPS: [find_me_signal_detection, eat_me_signal_recognition, engulfment, degradation]
OUTPUT: [corpse_clearance, context_dependent_resolution_signalling]
PROCESS antigen_presentation:
INPUT: [antigen, antigen_processing_context]
STEPS: [uptake_or_acquisition, processing, peptide_MHC_display, co_signal_context]
OUTPUT: [potential_T_cell_interaction]
NOTE: presentation alone does not imply effective naive T-cell priming
PROCESS inflammatory_signalling:
INPUT: [PRR_ligands, cytokine_environment, tissue_context]
OUTPUT: [context_specific_cytokines, chemokines, metabolic_changes]
PROCESS tissue_repair:
INPUT: [injury_signals, local_growth_factors]
OUTPUT: [debris_clearance, remodelling_signals, repair_support]
NOTE: sustained or dysregulated repair programmes may contribute to fibrosis
08. SIGNALLING ENTITIES
ENTITY TLR4 : Receptor
ENTITY CSF1R : Receptor
ENTITY IFNG : Cytokine
ENTITY IL4 : Cytokine
ENTITY IL10 : Cytokine
ENTITY TNF : Cytokine
ENTITY IL1B : Cytokine
ENTITY TGFB1 : Cytokine
ENTITY CCL2 : Chemokine
RULE R01:
WHEN macrophage.expresses(TLR4) AND suitable_ligand_detected AND signalling_competent
THEN infer possible_innate_activation
CONFIDENCE: context_dependent
RULE R02:
WHEN IFNG_signalling AND compatible_context
THEN infer increased_probability_of_inflammatory_programme
NOT: deterministic_binary_state
RULE R03:
WHEN IL4_signalling AND compatible_context
THEN infer increased_probability_of_alternative_activation_features
NOT: universal_M2_identity
RULE R04:
WHEN macrophage.engulfs(apoptotic_cell)
THEN infer efferocytosis_event
REQUIRES: direct_observation_or_supported_assay
09. STATE TRANSITIONS
STATE resting_or_homeostatic
STATE activated_inflammatory
STATE repair_associated
STATE tolerised_or_reprogrammed
STATE proliferating
STATE apoptotic
TRANSITION resting_or_homeostatic -> activated_inflammatory
TRIGGER: [pathogen_signal, damage_signal, inflammatory_cytokines]
GUARD: context_permits_response
TRANSITION activated_inflammatory -> repair_associated
TRIGGER: [stimulus_resolution, efferocytosis, local_tissue_cues]
GUARD: not_universal
TRANSITION activated_inflammatory -> tolerised_or_reprogrammed
TRIGGER: [repeated_stimulation, immunoregulatory_signals]
GUARD: stimulus_and_history_dependent
TRANSITION any_viable_state -> apoptotic
TRIGGER: [cell_death_signalling]
GUARD: appropriate_molecular_evidence
10. QUANTITATIVE MODELS
MODEL macrophage_population_balance:
dM/dt = R + P - D - E
VARIABLES:
M: macrophage_count
R: recruitment_or_differentiation_rate [cells/time]
P: local_proliferation_rate [cells/time]
D: death_rate [cells/time]
E: egress_rate [cells/time]
ASSUMPTIONS: rates refer to one defined compartment; no double counting
MODEL saturable_phagocytic_uptake:
v = Vmax * S / (Km + S)
VARIABLES:
v: uptake_rate
S: accessible_target_concentration
Vmax: maximum_rate_under_assay_conditions
Km: half_saturation_parameter
STATUS: phenomenological approximation; not universal kinetics
MODEL cytokine_balance:
dC/dt = q(M, activation_context) - k_clear * C
VARIABLES:
C: cytokine_concentration
q: production_rate_per_volume
k_clear: first_order_clearance_constant [1/time]
ASSUMPTIONS: well_mixed_compartment, specified cytokine and units
11. CONSTRAINTS AND VALIDATION
CONSTRAINT C01: macrophage markers are species-, tissue- and activation-dependent
CONSTRAINT C02: CD68 is not by itself a sufficient universal macrophage identifier
CONSTRAINT C03: human and mouse macrophage marker profiles must not be silently equated
CONSTRAINT C04: lineage and functional state are separate dimensions
CONSTRAINT C05: cytokine expression alone does not prove secretion or biological effect
CONSTRAINT C06: macrophage presence does not establish causation of disease
CONSTRAINT C07: experimental in vitro polarisation does not automatically describe in vivo states
VALIDATE: typed_edges AND provenance_present AND species_specified AND context_specified
12. SEMANTIC_EQUIVALENCE
EQUIVALENT_LABEL("macrophage", "macrophage cell") WHERE referent_same
RELATED_NOT_EQUIVALENT("macrophage", "monocyte")
RELATED_NOT_EQUIVALENT("macrophage", "dendritic cell")
RELATED_NOT_EQUIVALENT("macrophage", "osteoclast")
CONTEXTUAL_SUBCLASS("Kupffer cell", "tissue-resident macrophage")
CONTEXTUAL_SUBCLASS("alveolar macrophage", "tissue-resident macrophage")
NOTE: avoid treating M1 and M2 as exhaustive ontological subclasses
13. INFERENCE AND CONFIDENCE
CONFIDENCE:
scale: [0.0, 1.0]
fields: [source_quality, assay_specificity, biological_context_match, reproducibility, uncertainty]
aggregation: calibrated_method_required
default: null
policy: never fabricate a numeric confidence value without evidence
INFER macrophage_identity:
INPUT: [morphology, marker_panel, lineage_information, tissue, species]
OUTPUT: [candidate_class, confidence, alternative_explanations]
REQUIRE: multiple_independent_features_when_possible
INFER functional_state:
INPUT: [transcriptome, proteome, cytokine_measurements, functional_assays, time]
OUTPUT: [state_profile, uncertainty, context]
RULE: avoid_binary_polarisation_without_justification
14. RECURSIVE FLOW
FLOW MacrophageEvidenceUpdate(observations, model, depth):
REQUIRE depth >= 0
STEP 1: normalise_entity_labels(observations)
STEP 2: validate_species_tissue_time_and_assay(observations)
STEP 3: map_observations_to_typed_relationships(observations)
STEP 4: evaluate_supported_inferences(model, observations)
STEP 5: record_conflicts_and_missing_evidence()
STEP 6: update_provenance_and_uncertainty()
IF depth > 0 AND unresolved_relations_exist:
RETURN MacrophageEvidenceUpdate(newly_resolved_evidence, model, depth - 1)
ELSE:
RETURN versioned_model
TERMINATION: finite_depth_and_no_unsupported_inference_cycles
15. FLOW_HASH
FLOW_HASH:
method: SHA-256
canonicalisation: UTF-8 + LF + stable field ordering
input: canonical ontology content excluding stored digest
digest: COMPUTE_AT_PUBLICATION
note: no fabricated digest value
16. UPDATE_MODEL
UPDATE_MODEL:
update_triggers: [new_lineage_evidence, revised_cell_taxonomy, new_receptor_mechanism, contradictory_study, nomenclature_revision]
operations: [validate, compare, reconcile, version, rehash, publish]
preserve: [previous_version, change_log, source_provenance, uncertainty]
conflict_policy: retain_conflicting_claims_with_context_until_resolved
17. AI_CONSUMPTION
AI_CONSUMPTION:
primary_entity: Macrophage
entity_graph: typed_directed_multigraph
required_context: [species, tissue, developmental_origin_if_known, assay, time]
supported_tasks: [entity_linking, biological_retrieval, pathway_mapping, hypothesis_generation, evidence_audit]
unsupported_claims: [clinical_diagnosis_without_validation, universal_marker_identity, deterministic_M1_M2_assignment]
output_fields: [entity, type, relationships, context, provenance, confidence, limitations]
safe_reasoning: distinguish_observation_from_inference
18. PROVENANCE AND LICENCE
PROVENANCE:
page_url: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/macrophage-ontology.html
source_page_verified: false
derivation: general biological knowledge; topic-based formalisation
authorship: Mark Higgins — Sky (Recursive AI)
site: https://kirethresearch.org
END FLOW ALGEBRA
Download Code
Copy to Clipboard