Chemical Foundations of Life
Authors:
MArk Anthony Higgins - Sky Recursive Ai
MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: July 6th 2026
Revised Date: July 6th 2026
AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Chemical Foundations of Life — Main Page Ontology
Version: 1.0 | Date: 2026-10-15 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/chemical-foundations-of-life.html
Authors: Mark Higgins — Sky (Recursive AI)
Licence: Open Research Licence (consult published licence for precise terms)
AI INTERPRETATION NOTE
This specification defines typed, declarative knowledge-graph rules and validation constraints. Its rules are intended for formal interpretation; implementation requires an engine supporting the declared operators and predicates. Scientific assertions must remain evidence-bound.
1. SCOPE
flow "ChemicalFoundationsOfLife" v1.0 {
domain: BiologicalEntities.ChemicalFoundationsOfLife
purpose: classify chemical entities relevant to living systems, encode their structural and functional relationships, and support evidence-aware reasoning.
root_entity: ChemicalFoundationEntity
}
2. ONTOLOGY INDEX — FIFTEEN CHILD DOMAINS
TYPE BiologicalAtom <: ChemicalFoundationEntity
TYPE BiologicalMolecule <: ChemicalFoundationEntity
TYPE Biomolecule <: BiologicalMolecule
TYPE OrganicMolecule <: BiologicalMolecule
TYPE InorganicBiologicalMolecule <: BiologicalMolecule
TYPE WaterMolecule <: InorganicBiologicalMolecule
TYPE BiologicalIon <: ChemicalFoundationEntity
TYPE Electrolyte <: ChemicalFoundationEntity
TYPE MineralNutrient <: ChemicalFoundationEntity
TYPE BiologicalGas <: ChemicalFoundationEntity
TYPE ReactiveOxygenSpecies <: ChemicalFoundationEntity
TYPE FreeRadical <: ChemicalFoundationEntity
TYPE MolecularCofactor <: ChemicalFoundationEntity
TYPE BiologicalSolvent <: ChemicalFoundationEntity
TYPE MolecularComplex <: ChemicalFoundationEntity
NOTE: These are catalogue categories, not necessarily disjoint chemical kinds. Multiple classification is permitted. An electrolyte may be a substance yielding ions in solution; a free radical can also be a reactive oxygen species. Water can be classified as a biological solvent.
3. TYPED ENTITIES
ENTITY ChemicalFoundationEntity {
id: URI
preferred_label: String
aliases: Set[String]
category: Set[OntologyType]
formula: Optional[String]
charge: Optional[Integer]
composition: Optional[Map[Element,NonNegativeInteger]]
structural_description: Optional[String]
biological_context: Set[ContextID]
evidence: Set[EvidenceID]
provenance: ProvenanceRecord
confidence: ConfidenceRecord
valid_time: Optional[TimeInterval]
}
ENTITY Context { id: ContextID; organism: Optional[URI]; tissue: Optional[URI]; compartment: Optional[URI]; environment: Optional[URI]; conditions: Map[String,Value] }
ENTITY Reaction { id: URI; reactants: Multiset[ChemicalFoundationEntity]; products: Multiset[ChemicalFoundationEntity]; catalysts: Set[URI]; conditions: Map[String,Value]; evidence: Set[EvidenceID] }
ENTITY Evidence { id: EvidenceID; source: URI; method: Optional[String]; observation: Optional[String]; reviewed: Boolean }
ENTITY ProvenanceRecord { source: URI; version: String; observed_at: Optional[DateTime]; modified_at: Optional[DateTime]; derivation: Set[URI] }
ENTITY ConfidenceRecord { score: Optional[Real[0,1]]; method: Optional[String]; limitations: Set[String]; status: Enum[asserted,inferred,unverified,contradicted] }
4. RELATIONSHIP ALGEBRA
RELATION contains_atom(Molecule, BiologicalAtom)
RELATION bonded_to(Atom, Atom)
RELATION part_of(Entity, Entity)
RELATION participates_in(Entity, Reaction)
RELATION catalyses(Entity, Reaction)
RELATION dissolves(Solvent, Solute, Context)
RELATION dissociates_into(Electrolyte, BiologicalIon, Context)
RELATION transports(Entity, Entity, Context)
RELATION regulates(Entity, BiologicalProcess, Context)
RELATION supplies_nutrient(MineralNutrient, Organism, Context)
RELATION forms_complex(Entity, MolecularComplex)
RELATION reacts_with(Entity, Entity, Context)
RELATION has_biological_role(Entity, Role, Context)
RELATION observed_in(Entity, Context)
RELATION supported_by(Assertion, Evidence)
RELATION equivalent_to(Entity, Entity, Context)
RELATION derived_from(Assertion, Assertion)
5. INVARIANTS AND CONSTRAINTS
RULE R01: forall e:ChemicalFoundationEntity, e.id != null AND e.preferred_label != "".
RULE R02: forall e, e.charge is defined => e.charge is an integer in elementary-charge units.
RULE R03: forall m:BiologicalMolecule, m.composition is defined => each element count >= 0.
RULE R04: forall a,b, bonded_to(a,b) => bonded_to(b,a).
RULE R05: forall x,y, part_of(x,y) => x != y; prevent cycles in strict structural partonomy.
RULE R06: forall r:Reaction, verified_balanced(r) => conserved_element_counts(r.reactants,r.products) AND conserved_total_charge(r.reactants,r.products).
RULE R07: forall x,y,c, equivalent_to(x,y,c) => equivalent_to(y,x,c); require explicit equivalence criterion and scope.
RULE R08: forall x, confidence(x).score is defined => 0 <= confidence(x).score <= 1.
RULE R09: unsupported inference must not be promoted to experimentally verified status.
RULE R10: classifications may overlap; do not infer disjointness without an explicit axiom.
6. SCIENTIFIC DOMAIN RULES
RULE C01: WaterMolecule(w) => formula(w) = "H2O" AND charge(w) = 0 for neutral molecular water.
RULE C02: BiologicalIon(i) => charge(i) != 0; ionic species require context-specific chemical identity.
RULE C03: FreeRadical(x) => has_unpaired_electron(x); radical status is not synonymous with ion status.
RULE C04: ReactiveOxygenSpecies(x) => oxygen_derived_reactive_species(x); not all ROS are free radicals.
RULE C05: Electrolyte(x) AND aqueous_context(c) AND experimentally_supported_dissociation(x,c) => exists i:BiologicalIon, dissociates_into(x,i,c).
RULE C06: MolecularComplex(x) => exists a,b, a != b AND forms_complex(a,x) AND forms_complex(b,x), where a,b are component entities or subunits.
RULE C07: has_biological_role(x,role,c1) does not imply has_biological_role(x,role,c2) without context transfer evidence.
RULE C08: OrganicMolecule(x) is not inferred from carbon content alone; use a declared chemical classification convention.
RULE C09: MolecularCofactor(x) AND participates_in(x,r) does not imply catalyses(x,r); distinguish cofactor support from catalyst identity.
RULE C10: BiologicalGas(x) denotes a biologically relevant gaseous species under specified conditions, not an invariant phase under all conditions.
7. RECURSIVE GRAPH TRAVERSAL
OP descendants(root, relation, max_depth) -> Set[Entity]
REQUIRE max_depth >= 0
APPLY breadth_first_search(root, relation, visited_set, max_depth)
ENSURE termination on cycles by visited_set
OP evidence_closure(assertion, max_depth) -> Set[Evidence]
FOLLOW supported_by OR derived_from
REQUIRE provenance preserved for each traversed edge
OP functional_contexts(entity) -> Set[Context]
FOLLOW has_biological_role AND observed_in
RETURN only contexts explicitly asserted or validly inferred
8. SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE {
exact_identity: same referent and chemically compatible identity descriptors
structural_equivalence: matching declared structural representation under specified stereochemical and protonation conventions
contextual_equivalence: functionally interchangeable only in an explicitly bounded biological context
related_not_equivalent: same class, similar role, or shared composition alone
rule: never collapse ions, isotopologues, stereoisomers, or protonation states without explicit equivalence policy
}
9. VALIDATION PIPELINE
VALIDATE ingest -> parse -> type_check -> check_identifiers -> check_formula_charge -> check_relations -> check_reaction_balance -> inspect_evidence -> inspect_conflicts -> publish
FAIL if mandatory identifiers missing or structural contradictions unresolved.
WARN if context, provenance, or supporting evidence insufficient.
QUARANTINE conflicting claims while preserving their source records.
10. CONFIDENCE AND PROVENANCE
CONFIDENCE {
evidence_quality: consider measurement reliability, peer review, reproducibility, and directness
inference_depth: record number and kind of reasoning steps
context_match: assess whether evidence applies to organism, compartment, and conditions
output: score optional; do not invent a numeric value when uncalibrated
}
PROVENANCE {
source_page: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/chemical-foundations-of-life.html
authors: "Mark Higgins — Sky (Recursive AI)"
preserve: source_id, source_version, claim_id, evidence_id, transformation_history
}
11. FLOW HASH
FLOW_HASH {
canonicalisation: UTF-8, stable ordering of entities and relations, normalised field encoding
digest: SHA-256(canonical_serialisation)
scope: ontology_version + declarations + rules + source_identifiers
property: content integrity and change detection, not scientific proof
}
12. UPDATE MODEL
UPDATE_MODEL {
triggers: new_evidence | corrected_formula | changed_classification | revised_rule | source_revision
process: ingest -> compare_hash -> dependency_impact -> revalidate -> version -> publish
preserve: prior_versions, provenance, conflict_history
invalidate: dependent inferences affected by a changed premise
policy: do not silently overwrite disputed evidence
}
13. AI CONSUMPTION
AI_CONSUMPTION {
formats: typed_graph | JSON-LD | RDF | FlowAlgebraText
query: classify_entity | explain_relation | trace_evidence | validate_reaction | compare_contexts
outputs: entity_ids, typed_edges, inferred_claims, validation_status, confidence, provenance
guardrails: distinguish observed from inferred, flag unsupported claims, preserve context and uncertainty
recursion: bounded, cycle-safe, provenance-preserving
}
14. EXAMPLE REASONING TRACE
INPUT: entity = neutral H2O, context = aqueous biological system
ASSERT: WaterMolecule(H2O)
DERIVE: InorganicBiologicalMolecule(H2O) via declared subclass
ASSERT: BiologicalSolvent(H2O) only when a solvent role is documented in the given context
CHECK: formula H2O; charge 0; source and evidence attached
OUTPUT: classification + contextual role + validation report + provenance
15. COMPLETION CRITERIA
- All fifteen child ontology categories indexed.
- Typed entities and relationships declared.
- Chemical and biological context preserved.
- Validation, uncertainty, evidence and provenance represented.
- Recursive graph operations terminate safely.
- Semantic equivalence is explicit and scope-aware.
- Flow Hash, Update Model and AI Consumption defined.
END FLOW ALGEBRA