Skip to main content

Compound Ontology

Chemical Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 October 2026
Audio Overview
FLOW ALGEBRA
COMPOUND ONTOLOGY — KIRETH SEMANTIC LIBRARY
Version: 1.1 | Date: 2026-10-12 | Language: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Source URL: https://kirethresearch.org/booksai-core/entity-graph/physical-entities/chemical-entities/compound-ontology.html
Source status: Scientific synthesis; live page content not independently verified.

01. PURPOSE
Represent chemical compounds as substances with at least two distinct chemical elements chemically combined in a definite compositional relationship; support classification, stoichiometry, structure, properties, transformations and provenance-aware inference.

02. ONTOLOGY IDENTITY
ontology_id: kireth:physical-entities:chemical-entities:compound
parent: kireth:physical-entities:chemical-entities
primary_type: ChemicalCompound
related_types: ChemicalElement, Atom, Ion, Molecule, FormulaUnit, ChemicalBond, Mixture, Reaction

03. TYPE SYSTEM
ChemicalEntity := Element | Compound | Mixture | Ion | MolecularSpecies | OtherChemicalEntity
Compound := ChemicalSubstance with at least two distinct constituent elements chemically bonded in a defined ratio or compositional specification.
MolecularCompound <: Compound
IonicCompound <: Compound
NetworkCovalentCompound <: Compound
CoordinationCompound <: Compound (where composition and bonding criteria apply)
Hydrate <: Compound (where specified stoichiometric composition applies)

04. ENTITY ATTRIBUTES
compound.id: URI
compound.preferred_name: String
compound.synonyms: Set[String]
compound.formula: ChemicalFormula
compound.constituent_elements: Set[Element]
compound.stoichiometry: Map[Element, RationalPositive]
compound.structure: Optional[StructuralRepresentation]
compound.phase: Optional[PhysicalPhase]
compound.charge: Integer (neutral bulk formula units ordinarily zero)
compound.molar_mass: Quantity[g mol^-1]
compound.provenance: SourceRecord
compound.confidence: Real in [0,1]

05. RELATIONSHIP SIGNATURES
COMPOSED_OF: Compound x Element -> Boolean
HAS_STOICHIOMETRIC_COEFFICIENT: Compound x Element -> RationalPositive
HAS_FORMULA: Compound x ChemicalFormula -> Boolean
HAS_BOND_TYPE: Compound x BondType -> Boolean
HAS_STRUCTURE: Compound x StructuralRepresentation -> Boolean
HAS_PHASE: Compound x PhysicalPhase -> Boolean
PARTICIPATES_IN: Compound x ChemicalReaction -> Boolean
PRODUCES: ChemicalReaction x ChemicalEntity -> Boolean
CONSUMES: ChemicalReaction x ChemicalEntity -> Boolean
IS_ISOMER_OF: MolecularCompound x MolecularCompound -> Boolean
IS_HYDRATE_OF: Hydrate x Compound -> Boolean
HAS_PROPERTY: Compound x MeasuredProperty -> Boolean

06. FORMAL COMPOSITION RULE
For compound c, E(c) = {e : COMPOSED_OF(c,e)}.
ValidCompound(c) implies |E(c)| >= 2 and composition is chemically defined.
A formula is an expression of composition; it does not necessarily specify connectivity or geometry.

07. COMPOUND VS ELEMENT
An element consists of atoms with the same proton number; a compound combines at least two elements.
O2 is an elemental molecular substance, not a chemical compound.
H2O is a compound containing hydrogen and oxygen.

08. COMPOUND VS MIXTURE
A compound has chemically bonded constituents and defined composition.
A mixture combines substances without requiring chemical bonding between its constituents.
Air is a mixture; pure carbon dioxide is a compound.

09. MOLECULAR COMPOUNDS
Molecular compounds comprise discrete molecular units in the applicable model.
Example: H2O, CO2, NH3.
Caution: the chemical formula alone may not fully specify molecular structure or stereochemistry.

10. IONIC COMPOUNDS
Ionic solids may be described using formula units rather than discrete molecules.
Example: NaCl, CaF2.
Electroneutrality constraint: sum_i(n_i * z_i) = 0 for a neutral formula unit.

11. NETWORK AND EXTENDED SOLIDS
Some compounds form extended covalent or other crystal networks.
Example: SiO2 in quartz; formula represents composition, not an isolated SiO2 molecule in the crystal.

12. COORDINATION COMPOUNDS
Represent central metal species, ligands, coordination number, oxidation state and stereochemistry separately.
Example: [Co(NH3)6]Cl3; distinguish complex ion from counterions.

13. STOICHIOMETRIC INVARIANTS
For formula F = product_i E_i^(n_i), n_i > 0.
Element count: N_i(F) = n_i.
Molar mass: M(F) = sum_i n_i * A_r(E_i) g mol^-1, using adopted relative atomic masses.
Mass fractions: w_i = n_i * A_r(E_i) / sum_j n_j * A_r(E_j).

14. WORKED EXAMPLE: WATER
Formula: H2O
Element set: {H,O}
Coefficients: H=2, O=1
Approximate molar mass: 2(1.008) + 15.999 = 18.015 g mol^-1.
Hydrogen mass fraction: 2.016 / 18.015 approximately 0.1119.
Oxygen mass fraction: 15.999 / 18.015 approximately 0.8881.

15. WORKED EXAMPLE: SODIUM CHLORIDE
NaCl contains Na and Cl in 1:1 formula-unit ratio.
Formal ionic charges: Na+ and Cl-.
Charge balance: (+1) + (-1) = 0.
The crystal is an ionic lattice; NaCl is not ordinarily modelled as a discrete molecule in the solid.

16. WORKED EXAMPLE: CALCIUM CHLORIDE
CaCl2 has Ca2+ and two Cl- per neutral formula unit.
Charge balance: (+2) + 2(-1) = 0.

17. EMPIRICAL AND MOLECULAR FORMULAE
Empirical formula gives the simplest whole-number elemental ratio.
Molecular formula gives atom counts for a discrete molecule.
Example: glucose molecular C6H12O6; empirical CH2O.
For network solids, a composition formula may not be a molecular formula.

18. ISOMERISM
Two molecular compounds can share a molecular formula but differ in connectivity or stereochemical arrangement.
IS_ISOMER_OF(a,b) requires same molecular formula and distinct structures.
Example: ethanol and dimethyl ether both C2H6O.

19. OXIDATION STATES
Oxidation state is a formal electron-accounting quantity, not generally an observed atomic charge.
For a neutral compound, the sum of oxidation states weighted by atom count is zero.
For a polyatomic ion, the sum equals the ionic charge.

20. REACTION BALANCING
Let A be the element-by-species composition matrix.
A * nu = 0 for a balanced reaction, where nu is the signed stoichiometric vector.
Example: 2 H2 + O2 -> 2 H2O.
Hydrogen: 4 atoms on each side; oxygen: 2 atoms on each side.
Charge balance must also hold for ionic reactions.

21. CONSERVATION RULES
Ordinary chemical reactions conserve atoms of each element and total electric charge.
Mass conservation applies to closed systems to experimental accuracy, with mass-energy accounting fundamental.
Nuclear transmutation is not an ordinary chemical reaction.

22. PHASE AND CONDITIONS
Represent phase, temperature, pressure and solvent context with each property assertion.
The same compound can exhibit different physical properties in different phases or conditions.

23. CHEMICAL BONDING
Bond types include covalent, ionic, metallic and coordination descriptions.
Bond classification can be model-dependent and mixed; avoid exclusive categories where evidence does not warrant them.

24. IDENTIFICATION AND IDENTITY
Use structure-aware identifiers where possible; names alone can be ambiguous.
Distinguish salts, solvates, hydrates, stereoisomers, tautomers and polymorphs.
Do not collapse distinct chemical species solely because their empirical formulae match.

25. INFERENCE RULES
R1: HAS_FORMULA(c,F) and Elements(F) has >=2 distinct members -> CandidateCompound(c).
R2: ValidatedBonding(c) and DefinedComposition(c) and >=2 elements -> Compound(c).
R3: IonicCompound(c) and NeutralFormulaUnit(c) -> sum_i(n_i*z_i)=0.
R4: IS_ISOMER_OF(a,b) -> MolecularFormula(a)=MolecularFormula(b).
R5: IS_ISOMER_OF(a,b) -> Structure(a) != Structure(b).
R6: ReactionBalanced(r) -> element and charge balances satisfied.
R7: SameFormula(a,b) does NOT imply SameCompound(a,b).
R8: SameName(a,b) does NOT imply SameChemicalIdentity(a,b).

26. SEMANTIC EQUIVALENCE
Equivalent labels may include chemical compound and compound substance in appropriate contexts.
Chemical compound != chemical element.
Chemical compound != mixture.
Molecule != compound: O2 is a molecule but not a compound; NaCl solid is a compound but not a collection of discrete NaCl molecules.

27. CONSTRAINTS AND VALIDATION
V1: constituent element count >= 2 for an ordinary compound.
V2: all stoichiometric coefficients positive and finite.
V3: all constituent symbols resolve to known elements.
V4: neutral formula units satisfy charge balance.
V5: formula parser handles brackets, parentheses and hydrates.
V6: reaction balancing checks all elements and net charge.
V7: structure-based identity comparisons respect stereochemistry.
V8: measured quantities include units and conditions.
V9: uncertainty and provenance attached to empirical properties.
V10: no unverified structure inferred from formula alone.

28. EXCEPTIONS AND BOUNDARIES
Non-stoichiometric compounds and solid solutions require composition ranges rather than fixed integer ratios.
Chemical classification of alloys and intermetallic phases can depend on structure and convention.
Represent these cases explicitly instead of forcing a simplistic fixed-ratio model.

29. CONFIDENCE
CONFIDENCE assertion: [0,1], evidence-calibrated.
Established definitional relationships: high confidence if domain and context are unambiguous.
Predicted structures or properties: evidence-dependent confidence.
Unknown or disputed assertions: mark unresolved; do not assign artificial precision.

30. PROVENANCE
Record source identifier, retrieval date, assertion author, evidence type, model version and review status.
Keep the scientific synthesis distinct from any unverified live webpage wording.

31. FLOW_HASH
FLOW_HASH algorithm: SHA-256 of canonical UTF-8 serialisation of the flow body.
FLOW_HASH value: NOT_COMPUTED (calculate after canonicalisation).
Canonicalisation: normalise newlines to LF; preserve semantic ordering; exclude mutable hash field.

32. UPDATE_MODEL
version: 1.1
update_strategy: append-or-revise with provenance
change_detection: compare canonical serialisation hashes
conflict_resolution: prioritise verified evidence and explicit review
backwards_compatibility: preserve stable ontology IDs and typed relation meanings

33. AI_CONSUMPTION
consumption_modes: entity extraction, knowledge graph linking, formula validation, reaction balancing, question answering, reasoning and retrieval.
input_contract: typed chemical entities plus source-backed assertions.
output_contract: typed conclusions with confidence, provenance and explicit assumptions.
safety_rule: do not invent chemical identity, formula, property values or reaction products.

34. QUALITY ASSURANCE
Check all numbered sections present.
Check formal relationships have declared domain and range.
Check equations, examples and conservation constraints.
Check scientific distinctions: compound/element, compound/mixture, molecule/formula unit.
Check closing marker present.

35. AUTHORSHIP AND DISCLOSURE
Mark Higgins — Sky (Recursive AI)
Kireth Research: https://kirethresearch.org
AI-assisted co-authored scientific ontology synthesis; independent review is appropriate before high-stakes use.

END FLOW ALGEBRA — COMPOUND ONTOLOGY
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ