AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
PRODUCT MOLECULE ONTOLOGY
Kireth Semantic Library | Biological Entities | Enzyme and Metabolic Entities
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/enzyme-and-metabolic-entities/product-molecule-ontology.html
Version: 1.0 | 2026-10-16 | Encoding: UTF-8
Status: Domain-grounded formalisation; webpage's embedded specification not independently extracted.
01. PURPOSE
Represent chemical species produced by biochemical reactions, their provenance, stoichiometry, biochemical roles, and context-dependent relationships to enzymes, substrates and pathways.
A molecule's role as a product is relative to a particular reaction direction, not an intrinsic permanent classification.
02. TYPED ENTITIES
ENTITY ProductMolecule <: ChemicalEntity
ENTITY ChemicalSpecies <: ChemicalEntity
ENTITY MolecularInstance <: ChemicalEntity
ENTITY BiochemicalReaction <: Process
ENTITY ReactionDirection <: Context
ENTITY Enzyme <: ProteinOrCatalyst
ENTITY SubstrateRole <: ReactionParticipantRole
ENTITY ProductRole <: ReactionParticipantRole
ENTITY ReactionParticipant <: ContextualEntity
ENTITY Metabolite <: ChemicalSpecies
ENTITY Cofactor <: ChemicalSpecies
ENTITY Pathway <: BiologicalProcess
ENTITY Compartment <: CellularLocation
ENTITY Organism <: BiologicalEntity
ENTITY ExperimentalObservation <: Evidence
ENTITY Measurement <: Observation
ENTITY ProvenanceRecord <: Metadata
ENTITY ConfidenceScore <: Metadata
ENTITY ReactionState <: State
03. ATTRIBUTES AND CONSTRAINTS
ProductMolecule.id: Identifier
ProductMolecule.name: String
ProductMolecule.formula: Optional[String]
ProductMolecule.charge: Optional[Integer]
ProductMolecule.structure_identifier: Optional[String]
ProductMolecule.stereochemistry: Optional[String]
ProductMolecule.compartment: Optional[Compartment]
ProductMolecule.isotope_label: Optional[String]
BiochemicalReaction.id: Identifier
BiochemicalReaction.equation: BalancedChemicalEquation
BiochemicalReaction.direction: ReactionDirection
BiochemicalReaction.conditions: Context
BiochemicalReaction.evidence: Set[ExperimentalObservation]
ReactionParticipant.coefficient: PositiveRational
ReactionParticipant.role: {substrate, product, catalyst, modifier}
ReactionParticipant.species: ChemicalSpecies
ReactionParticipant.reaction: BiochemicalReaction
CONSTRAINT: Every assigned product role references a reaction and a direction.
CONSTRAINT: Stoichiometric coefficients are positive; direction determines the sign in a stoichiometric matrix.
CONSTRAINT: Chemical species identity distinguishes stereoisomers, charge states and relevant compartment or isotope context where required.
04. CORE RELATIONSHIPS
RELATION is_product_of(ProductMolecule, BiochemicalReaction)
RELATION produced_by(BiochemicalReaction, Enzyme)
RELATION has_product(BiochemicalReaction, ChemicalSpecies)
RELATION has_substrate(BiochemicalReaction, ChemicalSpecies)
RELATION catalysed_by(BiochemicalReaction, Enzyme)
RELATION participates_in(ChemicalSpecies, Pathway)
RELATION occurs_in(BiochemicalReaction, Compartment)
RELATION converted_to(ChemicalSpecies, ChemicalSpecies, BiochemicalReaction)
RELATION measured_by(ChemicalSpecies, Measurement)
RELATION supported_by(Assertion, ExperimentalObservation)
RELATION derived_from(Assertion, ProvenanceRecord)
RELATION semantically_equivalent_to(Entity, Entity, Context)
RELATION precedes_in_pathway(BiochemicalReaction, BiochemicalReaction)
RELATION is_intermediate_in(ChemicalSpecies, Pathway)
05. REACTION ALGEBRA
Let S be the set of chemical species and R the set of directed reactions.
For reaction r, let nu(s,r) be its signed stoichiometric coefficient.
nu(s,r) > 0 => s is a product of r in the selected forward direction.
nu(s,r) < 0 => s is a substrate of r in the selected forward direction.
nu(s,r) = 0 => s is absent from the net stoichiometric equation.
REACTION: sum(substrate coefficients * substrate species) -> sum(product coefficients * product species)
REVERSIBILITY: Reversing r exchanges substrate and product roles; it does not change chemical identity.
MASS_BALANCE: For each conserved element e, sum_s[element_count(e,s) * nu(s,r)] = 0.
CHARGE_BALANCE: For a fully specified charge-balanced reaction, sum_s[charge(s) * nu(s,r)] = 0.
EXCEPTION: Incomplete, lumped or boundary reactions require explicit balance-status metadata.
06. PRODUCT CLASSIFICATION
CLASS PrimaryProduct: product directly specified in a reaction's net stoichiometry.
CLASS CoProduct: one of two or more products from the same reaction.
CLASS Intermediate: product of one reaction and substrate of another in a specified pathway.
CLASS EndProduct: product with no downstream conversion in the defined pathway boundary; not necessarily chemically terminal.
CLASS ByProduct: product considered secondary to the designated process objective; classification is context-dependent.
CLASS SecretedProduct: product exported from its producing compartment.
CLASS StoredProduct: product accumulated in a storage pool.
CLASS LabelledProduct: product with an explicitly recorded isotopic label.
RULE: A chemical species may occupy multiple classes across different reactions or contexts.
07. EXAMPLE REACTIONS
EXAMPLE 1: Glucose + ATP -> glucose-6-phosphate + ADP + H+ (hexokinase; proton conventions may vary).
PRODUCTS: glucose-6-phosphate, ADP and H+ under the stated equation.
EXAMPLE 2: Pyruvate + NADH + H+ <-> lactate + NAD+ (lactate dehydrogenase).
PRODUCTS_FORWARD: lactate and NAD+.
PRODUCTS_REVERSE: pyruvate, NADH and H+.
EXAMPLE 3: ATP + H2O -> ADP + inorganic phosphate + H+ (specified hydrolysis convention).
NOTE: Reaction representations must specify protonation, pH conventions and compartment as appropriate.
08. FORMAL INFERENCE RULES
RULE P01: has_product(r,s) AND selected_direction(r,forward) => product_role(s,r,forward).
RULE P02: product_role(s,r,d) AND catalysed_by(r,e) => enzyme_associated_product(s,e,r,d).
RULE P03: product_role(s,r1,d1) AND substrate_role(s,r2,d2) AND same_pathway(r1,r2,p) => candidate_intermediate(s,p).
RULE P04: candidate_intermediate(s,p) AND pathway_order_supported(r1,r2,p) => is_intermediate_in(s,p).
RULE P05: reversible(r) AND product_role(s,r,forward) => substrate_role(s,r,reverse).
RULE P06: unbalanced(r) => flag_for_review(r,"stoichiometry").
RULE P07: conflicting_product_assignments(s,r,d) => preserve_both_claims_with_provenance(s,r,d).
RULE P08: absence_of_downstream_edge(s,p) DOES_NOT_IMPLY biologically_terminal(s).
RULE P09: observed_product(s,r) AND measured_concentration(s,t) DOES_NOT_IMPLY proven_causal_flux(r).
RULE P10: enzyme_associated_product(s,e,r,d) DOES_NOT_IMPLY e_alone_produces(s).
09. DYNAMIC FLOW AND METABOLIC NETWORKS
Let N be the species-by-reaction stoichiometric matrix.
Let v be the vector of reaction fluxes.
Let x be the vector of intracellular species amounts or concentrations under a consistent volume model.
DYNAMICS: dx/dt = N*v + boundary_terms.
STEADY_STATE: N*v + boundary_terms = 0, within the model assumptions.
CONSTRAINT: Flux direction and product assignment must agree with the chosen reaction orientation.
CONSTRAINT: Do not infer flux magnitude solely from product abundance.
CONSTRAINT: Thermodynamic feasibility requires appropriate concentrations and free-energy context.
10. RECURSIVE REASONING
FLOW ProductTrace(start_species, pathway, max_depth):
INITIALISE frontier = {start_species}; visited = {}.
FOR depth IN 0..max_depth:
EXPAND only reactions with evidence-supported product-to-substrate continuity.
ANNOTATE each step with reaction direction, compartment, confidence and provenance.
PREVENT repeated state expansion using (species, reaction, direction, compartment).
RETURN paths, unresolved branches and cycle annotations.
END.
RULE: Cycles may represent valid metabolic cycles; detect and annotate rather than silently discard.
RULE: Recursion depth and evidence limits must be explicit.
11. CONFIDENCE
CONFIDENCE(assertion) IN [0,1].
CONFIDENCE inputs: experimental support, reaction annotation quality, stoichiometric consistency, organism applicability, compartment match and model assumptions.
CONFIDENCE is evidence-scoped and must not be presented as calibrated probability without calibration.
RULE: Confidence of a multi-step inferred pathway cannot exceed unsupported certainty; retain step-level scores.
RULE: Missing evidence is unknown, not automatically false.
12. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE(a,b,context) requires compatible chemical identity, stereochemistry, protonation convention, isotopic identity and compartment relevance.
ALIAS: common name <-> systematic name, only where chemical identity is established.
DISTINCTION: ProductMolecule as a chemical species != product role in a reaction.
DISTINCTION: Metabolite != product in every reaction.
DISTINCTION: By-product != waste product in all biological contexts.
DISTINCTION: Concentration != reaction flux.
RULE: Never collapse two chemically distinct species because their common names are similar.
13. VALIDATION
CHECK V01: all reaction participants resolve to known chemical species identifiers.
CHECK V02: atom and charge balance when the reaction is fully specified.
CHECK V03: reaction direction explicitly identified.
CHECK V04: enzyme-to-reaction associations carry provenance.
CHECK V05: pathway order does not imply unique causation.
CHECK V06: products in distinct compartments are not merged without a transport edge.
CHECK V07: duplicated identifiers are reconciled only after identity verification.
CHECK V08: uncertainty and contradictory annotations remain traceable.
CHECK V09: all examples distinguish known facts from illustrative models.
CHECK V10: no inference claims a disease outcome or therapeutic efficacy from a reaction alone.
14. FLOW_HASH
FLOW_HASH = SHA256(canonical_utf8(
ontology_id + version + sorted_entity_schema + sorted_relation_schema +
sorted_rule_definitions + canonical_reaction_annotations
)).
RULE: Canonicalisation must define field order, whitespace, encoding and identifier normalisation.
RULE: A changed rule or reaction annotation changes the computed hash.
NOTE: FLOW_HASH here defines a computation; no digest is asserted without running it.
15. UPDATE_MODEL
UPDATE_MODEL(new_evidence):
VALIDATE source, chemical identifiers, direction, stoichiometry and context.
COMPARE against existing claims and provenance.
ADD new evidence as versioned assertions.
MARK conflicts for review without erasing prior records.
RECOMPUTE affected inferences and confidence annotations.
RECOMPUTE FLOW_HASH for the canonical updated model.
RETURN version_delta, impacted_relations, audit_log.
16. AI_CONSUMPTION
INPUT: natural-language query | reaction dataset | pathway graph | experimental observations.
PARSE: identify requested product, reaction direction, organism, compartment and conditions.
RESOLVE: chemical identity, synonyms and role-specific entities.
EXECUTE: apply typed relations and formal inference rules with explicit limits.
VERIFY: reaction balance, evidence provenance, conflicts and contextual assumptions.
OUTPUT: structured product assignments, pathways, confidence annotations and citations to evidence.
ABSTAIN: where identity, direction or evidence is insufficient for a reliable answer.
PROHIBITION: do not fabricate reaction evidence, flux measurements or computed hashes.
17. INTEGRATION LINKS
PARENT: Enzyme and Metabolic Entities.
RELATED: Enzyme Ontology; Substrate Ontology; Enzyme Active Site Ontology; Enzyme-Substrate Complex Ontology.
RELATED: Metabolite Ontology; Metabolic Pathway Ontology; Metabolic Network Ontology; Cofactor Ontology; Coenzyme Ontology.
RELATED: Protein Entity Ontology; Molecular Entity Ontology; Chemical Reaction Ontology.
18. AUTHORSHIP AND USE
Mark Higgins — Sky (Recursive AI)
Kireth Research | https://kirethresearch.org
This document is a formalisation for educational and semantic reasoning use; its rules require a compatible interpreter to execute.
END FLOW ALGEBRA