FLOW ALGEBRA
TITLE: Adenosine Triphosphate 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/adenosine-triphosphate-ontology.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
STATUS: Formal semantic model; equations are conditional on biochemical context.
1. ONTOLOGY DECLARATION
ontology ATP_Ontology := {
namespace: "kireth:biology:metabolism:ATP",
root: AdenosineTriphosphate,
parent: EnergyCarrier,
scope: [molecular_identity, biochemical_reactions, energy_coupling,
signalling, transport, regulation, provenance]
}
2. TYPED ENTITIES
entity ATP : NucleotideTriphosphate
entity ADP : NucleotideDiphosphate
entity AMP : NucleotideMonophosphate
entity Adenosine : Nucleoside
entity Adenine : PurineBase
entity Ribose : Pentose
entity Phosphate : InorganicPhosphate
entity Pyrophosphate : InorganicPyrophosphate
entity MagnesiumIon : MetalCation
entity MgATP : CoordinationComplex
entity Water : Molecule
entity Proton : Ion
entity Enzyme : BiologicalCatalyst
entity ATPase : Enzyme
entity ATPSynthase : Enzyme
entity Kinase : Enzyme
entity MetabolicReaction : Reaction
entity EnergyCoupledProcess : BiologicalProcess
entity ProtonMotiveForce : ElectrochemicalGradient
entity CellularCompartment : Location
entity Concentration : Quantity
entity GibbsEnergy : ThermodynamicQuantity
entity Evidence : ProvenanceRecord
3. CORE ATTRIBUTES
ATP.formula_neutral_reference := "C10H16N5O13P3"
ATP.components := [Adenine, Ribose, AlphaPhosphate, BetaPhosphate, GammaPhosphate]
ATP.bonds := [phosphoester, phosphoanhydride]
ATP.charge := context_dependent(pH, ionic_strength, metal_binding)
ATP.biological_role := [phosphoryl_donor, energy_coupling,
nucleotide_precursor, signalling_substrate]
ATP.active_complex := often(MgATP)
4. TYPED RELATIONSHIPS
relation has_component(NucleotideTriphosphate, MolecularComponent)
relation converted_to(Molecule, Molecule)
relation catalysed_by(Reaction, Enzyme)
relation participates_in(Molecule, Reaction)
relation transfers_phosphoryl_to(Molecule, Acceptor)
relation coupled_to(Reaction, BiologicalProcess)
relation located_in(Molecule, CellularCompartment)
relation bound_to(Molecule, MetalCation)
relation supported_by(Assertion, Evidence)
relation regulated_by(Reaction, Regulator)
relation generates(Reaction, Product)
relation consumes(Reaction, Reactant)
5. IDENTITY AND COMPOSITION
assert ATP is_a NucleotideTriphosphate
assert ATP has_component Adenosine
assert ATP has_component AlphaPhosphate
assert ATP has_component BetaPhosphate
assert ATP has_component GammaPhosphate
assert Adenosine has_component Adenine
assert Adenosine has_component Ribose
assert ATP not_semantically_equivalent_to ADP
assert ATP not_semantically_equivalent_to MgATP
6. REACTION FLOW ALGEBRA
flow ATP_Hydrolysis_Pi:
inputs: [ATP, Water]
outputs: [ADP, Phosphate]
catalyst: optional(ATPase)
balance: protonation_and_charge_dependent
transformation: ATP + H2O -> ADP + Pi (+ context-dependent H+)
flow ATP_Hydrolysis_PPi:
inputs: [ATP, Water]
outputs: [AMP, Pyrophosphate]
transformation: ATP + H2O -> AMP + PPi (+ context-dependent H+)
flow ATP_Regeneration:
inputs: [ADP, Phosphate, energy_source]
outputs: [ATP, Water]
transformation: ADP + Pi + energy_input -> ATP + H2O
routes: [oxidative_phosphorylation, photophosphorylation,
substrate_level_phosphorylation]
flow Phosphoryl_Transfer:
inputs: [ATP, acceptor]
outputs: [ADP, phosphorylated_acceptor]
catalyst: Kinase
preconditions: [compatible_acceptor, suitable_cofactors]
flow ATP_Dependent_Transport:
inputs: [ATP, transported_substrate, transporter]
outputs: [ADP, Pi, relocated_substrate]
constraint: transport_stoichiometry_is_transporter_specific
7. THERMODYNAMIC MODEL
symbol deltaG : GibbsEnergy
symbol deltaG_standard_prime : GibbsEnergy
symbol R : GasConstant
symbol T : AbsoluteTemperature
symbol Q : ReactionQuotient
rule reaction_energy:
deltaG = deltaG_standard_prime + R*T*ln(Q)
rule ATP_hydrolysis_approximation:
Q = activity(ADP)*activity(Pi)/activity(ATP)
assumptions: [defined_pH, temperature, ionic_conditions,
biochemical_standard_state_convention]
rule coupling:
if coupled_reactions_share_valid_mechanistic_intermediate
then deltaG_total = sum(deltaG_each_reaction)
rule feasibility:
if deltaG_total < 0 then forward_direction_thermodynamically_favoured
note: negative_deltaG_does_not_imply_fast_kinetics
8. KINETIC AND CONCENTRATION MODEL
state x := [ATP, ADP, AMP, Pi]
rule dynamic_balance:
d[ATP]/dt = sum(ATP_production_fluxes) - sum(ATP_consumption_fluxes)
rule enzyme_kinetics_optional:
v = Vmax*[MgATP]/(Km + [MgATP])
assumptions: [single_substrate_approximation, steady_state,
negligible_product_inhibition, valid_enzyme_model]
rule adenylate_kinase:
2 ADP <-> ATP + AMP
catalyst: AdenylateKinase
rule adenylate_energy_charge:
AEC = ([ATP] + 0.5*[ADP])/([ATP] + [ADP] + [AMP])
constraints: [denominator > 0, comparable_concentration_basis]
9. GRAPH SEMANTICS
node ATP : NucleotideTriphosphate
edge ATP -> ADP : hydrolyses_to
edge ATP -> AMP : hydrolyses_to_alternative_route
edge ADP -> ATP : regenerated_to
edge ATP -> MgATP : coordinates_magnesium_to_form
edge ATP -> Kinase : substrate_of
edge ATP -> ATPase : substrate_of
edge ATP -> ATPSynthase : product_of
edge ATP -> EnergyCoupledProcess : powers_via_coupling
edge ATP -> CellularCompartment : occurs_in
10. LOGICAL INFERENCE
rule R1:
if reaction consumes ATP and produces ADP and Pi
then candidate_type(reaction, ATP_hydrolysis_or_coupled_conversion)
rule R2:
if enzyme catalyses phosphorylation using ATP
then classify(enzyme, ATP_dependent_phosphotransferase_candidate)
rule R3:
if reaction synthesises ATP from ADP and Pi
then classify(reaction, ATP_regeneration)
rule R4:
if molecule = ATP then infer(molecule, purine_nucleotide_triphosphate)
rule R5:
if ATP_binds_Mg2+ then represent_distinct_species(ATP, MgATP)
rule R6:
if ATP_is_consumed then do_not_infer(energy_is_released_as_usable_work)
unless coupling_and_conditions_are_established
11. SEMANTIC_EQUIVALENCE
canonical: AdenosineTriphosphate
aliases: [ATP, adenosine_5_prime_triphosphate]
contextual_distinctions:
ATP != ADP
ATP != AMP
ATP != MgATP
ATP_hydrolysis != ATP_phosphoryl_transfer_in_all_contexts
ATP_concentration != ATP_flux
ATP_free_energy != universal_constant
mapping_policy:
preserve_charge_state_and_complexation_when_available
preserve_reaction_direction_and_compartment
do_not_merge_distinct_biochemical_species_without_evidence
12. CONFIDENCE
confidence_scale := [0.0, 1.0]
confidence(assertion) := calibrated_score(
evidence_quality, source_agreement, experimental_context,
chemical_balance, model_assumptions, provenance)
rule evidence_priority:
measured_context_specific_data > validated_curated_annotation > inferred_hypothesis
rule uncertainty:
if pH_or_temperature_or_ionic_conditions_unknown
then flag(thermodynamic_prediction, context_incomplete)
rule no_fabrication:
never_assign_numeric_confidence_without_scoring_evidence
13. RECURSIVE FLOW
flow ATP_Cycle:
state: cellular_metabolic_network
iterate:
1. identify_ATP_consuming_reactions
2. identify_ATP_regenerating_reactions
3. verify_mass_charge_and_atom_balance
4. update_compartment_specific_concentrations
5. evaluate_flux_constraints_and_energy_coupling
6. propagate_supported_inferences
7. record_uncertainty_and_provenance
until: convergence_or_defined_stop_condition
invariant: no_creation_of_energy_from_nothing
14. FLOW_HASH
FLOW_HASH.algorithm := SHA-256
FLOW_HASH.canonicalisation := UTF-8 + normalised_line_endings + stable_field_order
FLOW_HASH.input := canonical_serialisation(ontology_without_FLOW_HASH_value)
FLOW_HASH.value := COMPUTE_ON_PUBLICATION
FLOW_HASH.note := hash_is_content_integrity_identifier_not_scientific_validation
15. UPDATE_MODEL
UPDATE_MODEL.version := 1.0
UPDATE_MODEL.trigger := [new_curated_evidence, corrected_reaction_balance,
revised_taxonomy, validated_kinetic_data]
UPDATE_MODEL.steps := [validate, version, recalculate_dependencies,
preserve_previous_version, update_provenance,
recompute_FLOW_HASH]
UPDATE_MODEL.policy := never_silently_overwrite_experimental_context
16. AI_CONSUMPTION
AI_CONSUMPTION.format := typed_flow_algebra_text
AI_CONSUMPTION.primary_entity := AdenosineTriphosphate
AI_CONSUMPTION.capabilities := [entity_resolution, pathway_reasoning,
reaction_classification, biochemical_energy_reasoning,
uncertainty_tracking, knowledge_graph_integration]
AI_CONSUMPTION.guards := [check_mass_balance, check_charge_balance,
distinguish_species_and_complexes, preserve_compartments,
do_not_invent_rates_or_concentrations,
separate_thermodynamic_feasibility_from_kinetic_rate]
AI_CONSUMPTION.output := [inference, assumptions, evidence, confidence, provenance]
END FLOW ALGEBRA
Download Code
Copy to Clipboard