FLOW ALGEBRA
TITLE: Substrate Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Enzyme and Metabolic Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/enzyme-and-metabolic-entities/substrate-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
STATUS: Domain-grounded formalisation; source chapter not independently verified.
1. PURPOSE
Represent biochemical substrates as context-dependent participants in enzyme-catalysed reactions, with typed relationships, mechanistic constraints, evidence provenance, and recursive inference.
2. ENTITY TYPES
ENTITY Substrate <: ChemicalEntity
ENTITY Enzyme <: BiologicalCatalyst
ENTITY Reaction <: BiochemicalProcess
ENTITY EnzymeSubstrateComplex <: MolecularComplex
ENTITY Product <: ChemicalEntity
ENTITY ActiveSite <: ProteinRegion
ENTITY BindingSite <: MolecularRegion
ENTITY Cofactor <: ChemicalEntity
ENTITY Coenzyme <: Cofactor
ENTITY Inhibitor <: ChemicalEntity
ENTITY Metabolite <: ChemicalEntity
ENTITY MetabolicPathway <: BiologicalProcess
ENTITY Compartment <: CellularLocation
ENTITY Organism <: BiologicalEntity
ENTITY Evidence <: InformationEntity
ENTITY Measurement <: InformationEntity
ENTITY Condition <: ExperimentalContext
ENTITY ReactionRole <: ContextualRole
3. CORE DISTINCTIONS
RULE substrate_is_role:
Substrate(x, r) => ChemicalEntity(x) AND ReactantIn(x, r)
RULE role_is_contextual:
Substrate(x, r1) DOES_NOT_IMPLY Substrate(x, r2)
RULE product_is_contextual:
Product(x, r1) MAY_COEXIST_WITH Substrate(x, r2)
RULE enzyme_not_consumed:
Catalyses(e, r) => Enzyme(e) AND NotStoichiometricallyConsumed(e, r)
RULE no_automatic_binding:
Substrate(x, r) DOES_NOT_IMPLY DirectlyBinds(x, e)
4. CLASSIFICATION
CLASS SmallMoleculeSubstrate <: Substrate
CLASS MacromolecularSubstrate <: Substrate
CLASS ProteinSubstrate <: MacromolecularSubstrate
CLASS NucleicAcidSubstrate <: MacromolecularSubstrate
CLASS LipidSubstrate <: Substrate
CLASS CarbohydrateSubstrate <: Substrate
CLASS PrimarySubstrateRole <: ReactionRole
CLASS CoSubstrateRole <: ReactionRole
CLASS ElectronDonorRole <: ReactionRole
CLASS ElectronAcceptorRole <: ReactionRole
NOTE: Classes describe contextual substrate roles; a chemical species can play multiple roles.
5. TYPED RELATIONSHIPS
RELATION participates_in(Substrate, Reaction)
RELATION catalysed_by(Reaction, Enzyme)
RELATION binds_to(Substrate, ActiveSite)
RELATION forms_complex_with(Substrate, Enzyme)
RELATION converted_to(Substrate, Product)
RELATION requires_cofactor(Reaction, Cofactor)
RELATION inhibited_by(Reaction, Inhibitor)
RELATION occurs_in(Reaction, Compartment)
RELATION belongs_to(Reaction, MetabolicPathway)
RELATION supported_by(Assertion, Evidence)
RELATION measured_under(Measurement, Condition)
RELATION has_stoichiometric_coefficient(ChemicalEntity, Reaction, Number)
6. REACTION MODEL
REACTION r:
reactants = {s_i : nu_i}
products = {p_j : mu_j}
catalyst = e
conditions = {temperature, pH, ionic_strength, compartment}
evidence = {source, method, date, accession}
equation = SUM_i(nu_i * s_i) -> SUM_j(mu_j * p_j)
conservation = ElementalAndChargeBalanceWhenSpecified
7. ENZYME KINETICS
MODEL MichaelisMenten:
applicability = {single_substrate, steady_state, initial_rate, specified_conditions}
v = Vmax * [S] / (Km + [S])
Km = (k_minus_1 + k_cat) / k_1 FOR simple E+S <-> ES -> E+P
NOTE: Km is not universally equal to binding dissociation constant.
MODEL MultipleSubstrates:
mechanism = {sequential, ordered, random, ping_pong, unknown}
REQUIRE mechanism_specific_rate_law
MODEL Inhibition:
type = {competitive, uncompetitive, mixed, noncompetitive_special_case}
REQUIRE experimental_support_for_assignment
8. BIOCHEMICAL FLOW
FLOW SubstrateTransformation:
INPUT: enzyme e, substrate s, reaction r, context c
VALIDATE: identities(e,s,r) AND compatible_conditions(c)
IDENTIFY: active_site(e), cofactors(r), stoichiometry(r)
BIND: e + s <-> ES WHEN supported_by_mechanism
CATALYSE: ES -> e + products WHEN supported_by_mechanism
RECORD: products, rates, uncertainty, evidence
OUTPUT: contextual_reaction_assertions
9. EXAMPLES
EXAMPLE Hexokinase:
substrates = {D-glucose, ATP}
products = {D-glucose-6-phosphate, ADP, proton_as_context_appropriate}
enzyme = hexokinase
note = magnesium-dependent biochemical context; verify reaction proton balance by reference conditions
EXAMPLE LactateDehydrogenase:
reaction = pyruvate + NADH + H+ <-> L-lactate + NAD+
note = direction depends on biochemical conditions
EXAMPLE Protease:
substrate = protein_or_peptide
transformation = peptide_bond_hydrolysis
10. CONSTRAINTS AND VALIDATION
CONSTRAINT substrate_identity:
REQUIRE chemical_identifier OR explicitly_qualified_generic_class
CONSTRAINT reaction_context:
REQUIRE enzyme_identifier, reaction_identifier, organism_or_scope_if_known
CONSTRAINT reaction_direction:
NEVER infer irreversible direction from an arrow in a simplified diagram
CONSTRAINT evidence_quality:
Distinguish direct_assay, curated_database, prediction, and analogy
CONSTRAINT kinetic_comparison:
Compare Km_or_kcat ONLY under compatible assay_conditions
CONSTRAINT molecular_balance:
Verify atoms, charge, and cofactors for explicit stoichiometric reactions
CONSTRAINT ambiguity:
Unknown specificity remains UNKNOWN rather than FALSE
11. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE:
substrate = enzyme_reactant [context: enzyme_catalysed_reaction]
substrate != product [same reaction role]
substrate != ligand [ligand may bind without being chemically transformed]
substrate != inhibitor [roles may overlap only with specific mechanistic evidence]
substrate != metabolite [metabolite is broader and not necessarily an enzyme substrate]
chemical_identity_equivalence_requires = {structure, stereochemistry, protonation_scope}
12. RECURSIVE REASONING
FLOW RecursiveSubstrateTrace(seed, pathway, max_depth):
visited = SET()
frontier = [(seed, 0)]
WHILE frontier NOT_EMPTY:
(entity, depth) = POP(frontier)
IF entity IN visited OR depth > max_depth: CONTINUE
ADD entity TO visited
FOR EACH supported_reaction WHERE entity IS substrate:
VALIDATE reaction_context AND provenance
EMIT (entity, reaction, products)
FOR EACH product IN reaction.products:
IF product NOT_IN visited: PUSH(frontier, (product, depth + 1))
RETURN visited, emitted_edges, unresolved_claims
NOTE: Cycles are allowed in metabolic networks; visited guards prevent unbounded traversal.
13. CONFIDENCE
CONFIDENCE:
direct_curated_experimental = evidence_weighted_high
independently_replicated = confidence_increase_if_methods_independent
computational_prediction = provisional
cross_species_transfer = contextual_and_uncertain
conflicting_measurements = preserve_both_with_conditions
NEVER assign numeric probabilities without calibration and provenance
14. PROVENANCE
PROVENANCE_FIELDS:
assertion_id
source_uri
source_accession
evidence_method
organism
compartment
assay_conditions
curator
date_recorded
version
confidence_basis
15. FLOW_HASH
FLOW_HASH:
algorithm = SHA-256
canonical_payload = canonical_utf8({ontology_id, version, entity_ids, typed_relations, rules, provenance})
value = SHA256(canonical_payload)
note = computed_at_ingestion; no hash asserted without actual canonicalisation
16. UPDATE_MODEL
UPDATE_MODEL:
trigger = {new_evidence, corrected_reaction, changed_annotation, revised_kinetics}
preserve_prior_version = true
reconcile_by = {stable_ids, source_accessions, organism, experimental_context}
invalidate = {unsupported_inferences, obsolete_confidence_scores}
recompute = {affected_pathway_edges, recursive_traces, FLOW_HASH}
audit_log = required
17. AI_CONSUMPTION
AI_CONSUMPTION:
representation = typed_entity_graph
retrieval_keys = {substrate_name, chemical_id, enzyme_id, reaction_id, pathway_id}
inference_policy = evidence_bounded
output = {entities, relationships, conditions, evidence, confidence, uncertainty}
hallucination_guard = no_unverified_reaction_or_rate_claims
recursion_guard = visited_set_and_max_depth
interoperability = {RDF, OWL, JSON-LD, SBML_mapping_where_applicable}
18. QUALITY CHECKS
CHECK substrate_roles_are_reaction_scoped
CHECK reaction_stoichiometry_when_available
CHECK stereochemical_identity_when_relevant
CHECK biological_context_is_explicit
CHECK kinetics_assumptions_are_declared
CHECK evidence_and_uncertainty_are_retained
CHECK recursion_terminates
CHECK version_and_hash_recompute_on_update
END FLOW ALGEBRA
Download Code
Copy to Clipboard