Skip to main content

Steroid Ontology

Macromolecular Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
Steroid Ontology — Macromolecular Entities
Kireth Semantic Library | https://kirethresearch.org/booksai-core/entity-graph/biological-entities/macromolecular-entities/steroid-ontology.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Version: 1.0 | 2026-10-15 | Locale: en-GB

AI INTERPRETATION NOTE
This formal semantic specification represents steroid structures, classes, biosynthetic relationships, biological activities and evidence-aware inference. Interpret rules as constrained declarative operations. A steroid is a lipid-related compound defined by a characteristic tetracyclic steroid nucleus; steroids are generally small molecules rather than macromolecules, despite this library's navigation category. Structural assignment and biological effects require appropriate evidence.

flow "SteroidOntology" v1.0

# 01 — IDENTITY AND SCOPE
ontology.id: "kireth:biological-entities:macromolecular-entities:steroid"
ontology.label: "Steroid Ontology"
ontology.parent: "Lipid Ontology"
ontology.navigation_group: "Macromolecular Entities"
ontology.domain: ["Biochemistry", "Lipid Biology", "Endocrinology", "Chemical Biology", "Metabolomics"]
ontology.scope: "Steroid nucleus, molecular families, transformations, receptors, functions and provenance"
ontology.status: "formal_semantic_specification"

# 02 — TYPE SYSTEM
type Entity = {id: str, label: str, provenance: EvidenceRef?}
type EvidenceRef = {source: str, identifier: str?, method: str?, observed_at: datetime?, version: str?}
type RingSystem = {rings: list[int], fused: bool, stereochemistry: str?}
type FunctionalGroup = {kind: str, position: str?, stereochemistry: str?}
type Steroid = Entity & {
  nucleus: RingSystem,
  carbon_skeleton: str?,
  substituents: list[FunctionalGroup],
  double_bonds: list[str],
  stereochemistry: str?,
  formula: str?,
  molecular_mass: float?,
  charge: int?,
  family: str?,
  biological_origin: str?,
  confidence: float in [0,1]
}
type Sterol = Steroid & {hydroxyl_position: str?, side_chain: str?}
type SteroidHormone = Steroid & {hormone_class: str?, receptor_targets: list[str]}
type Receptor = Entity & {receptor_family: str?, species: str?, tissue: str?}
type Enzyme = Entity & {ec_number: str?, reaction_specificity: str?}
type Reaction = Entity & {substrates: list[Entity], products: list[Entity], catalysts: list[Enzyme], conditions: map?}
type Observation = {subject: Entity, predicate: str, object: any, evidence: EvidenceRef, confidence: float in [0,1]}

# 03 — CORE STRUCTURAL AXIOMS
axiom.steroid_nucleus: "Characteristic fused tetracyclic ring framework: three six-membered rings and one five-membered ring"
axiom.structure_priority: "Classify by verified molecular connectivity, not name alone"
axiom.substituent_variability: "Steroids vary in oxidation, side chains, unsaturation and stereochemistry"
axiom.stereochemical_specificity: "Distinct stereoisomers are not automatically interchangeable"
axiom.size_distinction: "Steroid molecules are generally not polymers or macromolecules"
rule.has_verified_steroid_nucleus(x) -> candidate_class(x, Steroid)
rule.candidate_class(x, Steroid) AND structure_confirmed(x) -> class(x, Steroid)
rule.no_verified_nucleus(x) -> do_not_assert(x, Steroid)

# 04 — TAXONOMY
class.steroid: Steroid
class.sterol: Sterol subclass_of Steroid
class.cholesterol: Sterol
class.phytosterol: Sterol
class.ergosterol: Sterol
class.steroid_hormone: SteroidHormone subclass_of Steroid
class.glucocorticoid: SteroidHormone
class.mineralocorticoid: SteroidHormone
class.androgen: SteroidHormone
class.oestrogen: SteroidHormone
class.progestogen: SteroidHormone
class.bile_acid: Steroid
class.bile_salt: "conjugated or ionised bile-acid derivative, context-dependent"
class.corticosteroid: SteroidHormone
class.neurosteroid: "steroid with demonstrated or proposed nervous-system action; context-sensitive"
class.synthetic_steroid: "steroid prepared by chemical synthesis or modification"
class.steroidal_saponin: "steroid-containing glycoside family"
class.secosteroid: "not a steroid with an intact tetracyclic nucleus; related ring-opened steroid-derived family"

# 05 — EXAMPLE INSTANCES
instance.cholesterol: {class: Sterol, role: ["membrane component", "biosynthetic precursor"]}
instance.ergosterol: {class: Sterol, role: ["fungal membrane sterol", "vitamin D2 precursor"]}
instance.cortisol: {class: SteroidHormone, hormone_class: "glucocorticoid"}
instance.aldosterone: {class: SteroidHormone, hormone_class: "mineralocorticoid"}
instance.testosterone: {class: SteroidHormone, hormone_class: "androgen"}
instance.oestradiol: {class: SteroidHormone, hormone_class: "oestrogen"}
instance.progesterone: {class: SteroidHormone, hormone_class: "progestogen"}
instance.cholic_acid: {class: Steroid, family: "bile acid"}
rule.instance_membership: "Confirm identity against a molecular structure reference"

# 06 — TYPED RELATIONSHIPS
relation.is_a: Entity -> Entity
relation.has_nucleus: Steroid -> RingSystem
relation.has_substituent: Steroid -> FunctionalGroup
relation.is_stereoisomer_of: Steroid <-> Steroid
relation.is_precursor_of: Entity -> Entity
relation.is_product_of: Entity -> Reaction
relation.catalysed_by: Reaction -> Enzyme
relation.binds_to: Steroid -> Receptor
relation.modulates: Steroid -> Entity
relation.located_in: Entity -> Entity
relation.participates_in: Entity -> Reaction
relation.derived_from: Entity -> Entity
relation.has_evidence: Entity -> EvidenceRef
relation.semantic_equivalent_to: Entity <-> Entity
relation.contraindicates_equivalence: Entity <-> Entity
constraint.is_precursor_of: "Requires an evidenced pathway and direction"
constraint.binds_to: "Binding does not alone establish agonism, antagonism or clinical effect"
constraint.derived_from: "Do not infer direct one-step conversion"

# 07 — BIOCHEMICAL PATHWAYS
pathway.sterol_biosynthesis:
  upstream: "acetyl-CoA-derived mevalonate/isoprenoid intermediates"
  intermediates: ["squalene", "oxidosqualene", "lanosterol or alternative organism-specific cyclisation product"]
  output: "sterols, including cholesterol in relevant organisms"
  note: "Exact pathway depends on organism and cell type"
pathway.steroidogenesis:
  precursor: "cholesterol"
  intermediate: "pregnenolone"
  branches: ["glucocorticoids", "mineralocorticoids", "androgens", "oestrogens", "progestogens"]
  note: "Specific transformations require enzymes, tissue context and cofactors"
pathway.bile_acid_synthesis:
  precursor: "cholesterol"
  output: "primary bile acids"
  note: "Microbial metabolism can generate secondary bile acids"
rule.reaction_inference:
  IF verified_reaction(r) AND contains(r.substrates, a) AND contains(r.products, b)
  THEN infer(a, "is_direct_precursor_of", b, confidence=confidence(r))
rule.pathway_inference:
  IF path(a, b) AND verified_edges(path)
  THEN infer(a, "is_upstream_precursor_of", b, confidence=aggregate_path_confidence(path))
rule.pathway_safety: "A pathway relation is not proof of reaction occurring in a particular sample"

# 08 — BIOLOGICAL ROLES
role.membrane: "Sterols influence membrane organisation, fluidity and permeability in context"
role.signalling: "Steroid hormones can regulate transcription through nuclear receptors and other pathways"
role.digestion: "Bile acids aid emulsification and absorption of dietary lipids"
role.homeostasis: "Steroid signalling participates in metabolism, stress responses, reproduction and electrolyte regulation"
rule.effect_requires_context: "Specify receptor, dose, species, tissue, time and evidence before asserting effect"
rule.no_universal_effect: "Do not generalise a compound's action across all receptors or organisms"

# 09 — CHEMICAL TRANSFORMATIONS
transformation.hydroxylation: "Adds hydroxyl functionality at an identified position"
transformation.oxidation_reduction: "Changes functional-group oxidation state"
transformation.aromatisation: "Can form an aromatic ring in specified steroid transformations"
transformation.conjugation: "Includes sulphation, glucuronidation or other verified conjugation"
transformation.esterification: "Sterol hydroxyl may form a steryl ester"
transformation.deconjugation: "Reverse transformation where chemistry and enzymes permit"
rule.transformation_validity:
  IF balanced_reaction(r) AND substrate_identity_confirmed(r) AND product_identity_confirmed(r)
  THEN accept_transformation(r)
  ELSE flag_for_review(r)

# 10 — MEASUREMENT AND EVIDENCE
method.mass_spectrometry: "Provides mass and fragmentation evidence; positional isomers may remain ambiguous"
method.chromatography: "Separates analytes with method-dependent selectivity"
method.nmr: "Can support structural and stereochemical assignments"
method.crystallography: "Can resolve molecular geometry where suitable structures are obtained"
method.receptor_assay: "Supports measured binding or activity under specified assay conditions"
rule.identification: "Require method, reference standard where relevant, uncertainty and provenance"
rule.concentration: "Preserve units, matrix, calibration and detection limits"
rule.inference_not_observation: "Do not promote predicted assignments to experimentally confirmed status"

# 11 — LOGICAL CONSTRAINTS
constraint.nucleus: "A non-steroidal lipid must not be classified as a steroid solely because it is hydrophobic"
constraint.hormone: "Not every steroid is a hormone"
constraint.sterol: "Not every steroid is a sterol"
constraint.synthesis: "Natural occurrence does not imply a compound cannot also be synthesised"
constraint.derived_vitamin_d: "Secosteroids such as vitamin D have a ring-opened steroid-derived skeleton"
constraint.isomerism: "Stereochemistry and regioisomerism may alter activity"
constraint.organism: "Do not assume human-specific pathways hold in plants, fungi or bacteria"
constraint.uncertainty: "Missing data remain unknown rather than false"

# 12 — RECURSIVE SEMANTIC REASONING
recursive.traverse(start, relation, max_depth=16):
  visited := set()
  frontier := [(start, 0)]
  WHILE frontier not empty:
    (node, depth) := pop(frontier)
    IF node in visited OR depth > max_depth: CONTINUE
    visited.add(node)
    EMIT(node)
    FOR edge in verified_outgoing(node, relation):
      frontier.push((edge.target, depth + 1))
recursive.stop_conditions: ["visited node", "depth limit", "insufficient evidence", "invalid relation type"]
recursive.inference: "Record every supporting edge and do not assume causal transitivity from association"
recursive.provenance: "Carry source references through derived claims"

# 13 — CONFIDENCE
CONFIDENCE.range: [0.0, 1.0]
CONFIDENCE.inputs: ["source reliability", "method specificity", "replication", "structural resolution", "context match"]
CONFIDENCE.default_unverified: null
CONFIDENCE.combine: "Use documented calibrated aggregation; never increase certainty merely by repeating the same source"
CONFIDENCE.conflict: "Retain competing hypotheses and flag contradiction"
CONFIDENCE.thresholds: "Application-defined, not universal biological truth"

# 14 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE.canonicalisation: ["standard chemical identifier", "structure", "stereochemistry", "protonation state", "context"]
SEMANTIC_EQUIVALENCE.rules:
  - "Synonyms can denote the same chemical entity after identity verification"
  - "Class membership is not identity"
  - "Different stereoisomers are not strictly equivalent"
  - "Conjugated, esterified or ionised forms must not be silently merged"
  - "Hormone-class terms may be functional and context-dependent"
SEMANTIC_EQUIVALENCE.outputs: ["exact_identity", "contextual_synonym", "related_structure", "non_equivalent", "unresolved"]

# 15 — FLOW HASH
FLOW_HASH.algorithm: "SHA-256"
FLOW_HASH.input: "Canonical UTF-8 serialisation of ontology identity, version, typed assertions, rules and evidence references"
FLOW_HASH.canonicalisation: ["normalise Unicode", "sort unordered mappings", "preserve ordered reactions", "normalise identifiers", "exclude volatile timestamps"]
FLOW_HASH.output: "Lowercase hexadecimal digest"
FLOW_HASH.policy: "Hash changes when canonical scientific content changes; hash is not proof of correctness"

# 16 — UPDATE MODEL
UPDATE_MODEL.triggers: ["new evidence", "corrected structure", "revised pathway", "taxonomy revision", "source retraction"]
UPDATE_MODEL.steps:
  - "Validate new source and provenance"
  - "Compare assertions and detect conflicts"
  - "Revise affected entity and relationship records"
  - "Invalidate dependent inferences and recompute confidence"
  - "Regenerate FLOW_HASH and increment version"
  - "Preserve audit history and reversible prior states"
UPDATE_MODEL.conflict_policy: "retain_and_flag_until_resolved"
UPDATE_MODEL.rollback: "restore a recorded previous version"

# 17 — AI CONSUMPTION
AI_CONSUMPTION.format: "typed semantic graph with declarative inference constraints"
AI_CONSUMPTION.outputs: ["entities", "classes", "relationships", "pathways", "validated_inferences", "confidence", "provenance", "flow_hash"]
AI_CONSUMPTION.require:
  - "Separate chemical identity from biological function"
  - "Preserve uncertainty and stereochemical distinctions"
  - "Trace inferred pathways to verified reaction evidence"
  - "Distinguish correlation, binding and demonstrated biological causality"
  - "Maintain organism and tissue context"
  - "Never substitute semantic inference for experimental confirmation"
AI_CONSUMPTION.use_cases: ["lipidomics", "endocrinology", "pathway knowledge graphs", "chemical entity linking", "research education", "recursive scientific reasoning"]

# 18 — VALIDATION TESTS
test.cholesterol: "classify as sterol and steroid with verified structure"
test.cortisol: "classify as steroid hormone and glucocorticoid"
test.oestradiol: "classify as steroid hormone and oestrogen"
test.cholic_acid: "classify as steroid-derived bile acid, not steroid hormone"
test.triglyceride: "reject steroid classification without steroid nucleus"
test.vitamin_d: "identify as secosteroid; do not assert intact tetracyclic nucleus"
test.stereoisomers: "preserve distinct chemical identities"
test.mass_only: "do not infer uniquely resolved stereochemistry from mass alone"
test.pathway: "reject unsupported direct precursor claims"
test.missing_evidence: "flag unverified assignments"
test.cyclic_traversal: "terminate on visited nodes"
test.hash_repeatability: "identical canonical input yields identical hash"

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