FLOW ALGEBRA
ONTOLOGY: Major Histocompatibility Complex (MHC)
VERSION: 1.0
DOMAIN: Biological Entities / Immune System Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/immune-system-entities/major-histocompatibility-complex-ontology.html
STATUS: Topic-based formalisation; source page not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
01 PURPOSE
Represent MHC genes, proteins, peptide processing, antigen presentation, T-cell recognition and contextual immune outcomes with typed relationships and explicit uncertainty.
02 TYPES
entity MHC_Locus : GenomicLocus
entity MHC_Allele : GeneticVariant
entity MHC_Molecule : ProteinComplex
entity MHC_Class_I : MHC_Molecule
entity MHC_Class_II : MHC_Molecule
entity Peptide : AntigenFragment
entity Antigen : MolecularEntity
entity AntigenPresentingCell : ImmuneCell
entity CD8_T_Cell : TCell
entity CD4_T_Cell : TCell
entity T_Cell_Receptor : Receptor
entity Beta2Microglobulin : Protein
entity TAP_Transporter : ProteinComplex
entity Proteasome : ProteinComplex
entity EndosomalCompartment : CellularCompartment
entity PeptideLoadingComplex : ProteinComplex
entity InvariantChain : Protein
entity HLA_DM : ProteinComplex
entity PresentationEvent : BiologicalProcess
entity RecognitionEvent : BiologicalProcess
entity ImmuneContext : Context
entity Evidence : ProvenanceRecord
03 TAXONOMY
MHC_Class_I subtype_of MHC_Molecule
MHC_Class_II subtype_of MHC_Molecule
HLA_A subtype_of MHC_Class_I
HLA_B subtype_of MHC_Class_I
HLA_C subtype_of MHC_Class_I
HLA_DP subtype_of MHC_Class_II
HLA_DQ subtype_of MHC_Class_II
HLA_DR subtype_of MHC_Class_II
NOTE: HLA is the human MHC system; homologous systems in other species use different nomenclature.
04 STRUCTURAL RELATIONS
MHC_Class_I has_component polymorphic_heavy_chain
MHC_Class_I associates_with Beta2Microglobulin
MHC_Class_II has_component alpha_chain
MHC_Class_II has_component beta_chain
MHC_Molecule binds Peptide
MHC_Allele influences peptide_binding_specificity
MHC_Locus encodes MHC_Molecule
05 ANTIGEN PROCESSING
endogenous_protein -> proteasomal_processing -> cytosolic_peptide
cytosolic_peptide -> TAP_transport -> endoplasmic_reticulum
endoplasmic_reticulum -> class_I_peptide_loading -> surface_MHC_I_peptide
extracellular_antigen -> endocytosis -> endosomal_processing
endosomal_processing -> class_II_peptide_loading -> surface_MHC_II_peptide
InvariantChain supports class_II_trafficking_and_loading
HLA_DM facilitates class_II_peptide_exchange
CAVEAT: Cross-presentation can route exogenous antigens to MHC I; autophagy and other routes can contribute to MHC II presentation.
06 T-CELL RECOGNITION
surface_MHC_I_peptide + compatible_TCR + CD8_coreceptor -> possible_CD8_recognition
surface_MHC_II_peptide + compatible_TCR + CD4_coreceptor -> possible_CD4_recognition
recognition != activation
activation requires appropriate co_stimulation and cellular_context
self_peptide_presentation != autoimmune_response
07 TYPED RELATIONSHIPS
encodes(MHC_Locus, MHC_Molecule)
variant_of(MHC_Allele, MHC_Locus)
expressed_on(MHC_Molecule, Cell)
presents(MHC_Molecule, Peptide)
recognises(T_Cell_Receptor, MHC_Molecule, Peptide)
processes(Proteasome, Antigen)
transports(TAP_Transporter, Peptide)
occurs_in(PresentationEvent, ImmuneContext)
supported_by(Assertion, Evidence)
08 CONSTRAINTS
ASSERT MHC_Class_I requires heavy_chain and beta2_microglobulin for canonical stable surface expression
ASSERT MHC_Class_II requires alpha_chain and beta_chain
ASSERT peptide_binding is allele_dependent
ASSERT CD4_CD8_association is a canonical tendency, not an exclusive universal rule
ASSERT human_HLA_allele_names are not interchangeable with gene_locus_names
ASSERT binding_prediction alone does not prove natural_processing_or_immunogenicity
09 QUANTITATIVE MODEL
For a simple equilibrium peptide-MHC interaction:
Kd = [MHC_free] * [Peptide_free] / [MHC_Peptide]
occupancy = [Peptide_free] / (Kd + [Peptide_free])
ASSUMPTIONS: single independent binding mode, equilibrium, constant environment and no competing ligands.
For competing peptides i:
relative_weight_i = [Peptide_i] / Kd_i
fraction_bound_i = relative_weight_i / (1 + SUM_j relative_weight_j)
ASSUMPTIONS: idealised competitive binding to one site; not a complete cellular antigen-presentation model.
10 STATE TRANSITIONS
MHC_synthesised -> MHC_assembled -> peptide_loaded -> surface_displayed
surface_displayed -> internalised -> recycled_or_degraded
TCell_naive -> antigen_encountered -> context_evaluated -> activated_or_tolerised_or_unresponsive
All transitions are conditional and may have intermediate states.
11 INFERENCE RULES
RULE I1: IF molecule type MHC_Class_I AND peptide_loaded AND surface_expressed THEN candidate_CD8_ligand.
RULE I2: IF molecule type MHC_Class_II AND peptide_loaded AND surface_expressed THEN candidate_CD4_ligand.
RULE I3: IF TCR_compatible AND antigen_presented THEN recognition_possible; do not infer activation.
RULE I4: IF evidence is binding_assay_only THEN presentation_confidence cannot be inferred as experimentally confirmed.
RULE I5: IF species != human THEN avoid asserting human_HLA_specificity without mapping evidence.
RULE I6: IF peptide_is_self THEN do not infer tolerance or autoimmunity without context.
12 SEMANTIC_EQUIVALENCE
MHC = major histocompatibility complex [concept label]
HLA = human leukocyte antigen [human MHC nomenclature, not universally identical in scope]
MHC_I = MHC class I [exact class alias]
MHC_II = MHC class II [exact class alias]
peptide_MHC_complex = pMHC [contextual alias]
MHC_I != MHC_II
antigen_binding != antigen_presentation != T_cell_activation
13 CONFIDENCE
confidence_score in [0,1]
confidence_scope: individual_assertion
confidence_sources: experimental_assay, curated_database, literature, computational_prediction
confidence_policy:
experimentally_observed: evidence_specific
curated_annotation: source_quality_dependent
computational_prediction: model_and_validation_dependent
unknown: unassigned
Do not invent numeric confidence from source labels alone.
14 PROVENANCE
record assertion_id, evidence_id, species, tissue, cell_type, assay, date, source, curator, version
record peptide_sequence, MHC_allele, processing_context when available
record negative_results and uncertainty explicitly
15 RECURSIVE FLOW
INPUT antigen, cell, species, MHC_genotype, immune_context
STEP classify antigen_source
STEP identify processing_routes
STEP identify expressed_MHC_molecules
STEP evaluate candidate_peptide_loading
STEP evaluate surface_presentation_evidence
STEP evaluate compatible_T_cell_recognition
STEP evaluate co_stimulation_and_tolerance_context
STEP assign evidence_specific_confidence
STEP emit typed_assertions_with_provenance
RECURSE only when new evidence or state changes are supplied
STOP on stable evidence state, resource bound or unresolved data
16 FLOW_HASH
FLOW_HASH_METHOD: SHA-256 over canonical UTF-8 normalised ontology payload
FLOW_HASH_VALUE: compute at publication; not preassigned
CANONICALISATION: stable field order, normalised whitespace, explicit ontology version
17 UPDATE_MODEL
update_trigger: new curated evidence, allele annotation, pathway correction, ontology revision
update_steps: validate -> compare -> version -> recompute_hash -> publish
preserve_previous_versions: true
invalidate_dependent_inferences: when premises change
18 AI_CONSUMPTION
format: typed text flow algebra
primary_entity: MajorHistocompatibilityComplex
retrieval_keys: [MHC, HLA, antigen_presentation, MHC_I, MHC_II, peptide_loading, T_cell_recognition]
expected_output: evidence-grounded typed graph with uncertainty
prohibited_inference: predicted_binding_implies_immunity
scope: education, semantic retrieval and research knowledge representation
19 VALIDATION TESTS
TEST class_I_contains_heavy_chain AND associates_beta2_microglobulin
TEST class_II_contains_alpha_and_beta_chains
TEST binding_does_not_imply_presentation
TEST presentation_does_not_imply_activation
TEST species_context_preserved
TEST evidence_provenance_attached
TEST no_unsupported_numeric_confidence
TEST flow_hash_computed_only_after_canonicalisation
END FLOW ALGEBRA
Download Code
Copy to Clipboard