Skip to main content

Cancer Entity Ontology

Pathological Biological Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 27 October 2026
Audio Overview
FLOW ALGEBRA — CANCER ENTITY ONTOLOGY
Kireth Semantic Library | Pathological Biological Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/cancer-entity-ontology.html
Source authors: Mark Anthony Higgins — Sky Recursive AI
Companion formalisation prepared: 27 October 2026
Status: proposed machine-readable companion; not a verbatim extraction of hidden page code.

01. PURPOSE
Represent cancer entities, their evidence, relationships, progression and uncertainty without conflating suspicion with confirmed diagnosis.

02. FLOW DECLARATION
flow "CancerEntityOntology" v1.0
locale = "en-GB"
domain = "biological-entities/pathological-biological-entities"
entity_type = "CancerEntity"

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observations and candidate entities at step t
R_t = typed biological and clinical relationships
B_t = boundaries, provenance, and evidential constraints
K_t = validated domain knowledge and classification rules
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and consistent(x, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, evidence_t)
Termination: stable entity resolution, exhausted evidence, or explicit uncertainty state.

04. ENTITY SCHEMA
CancerEntity {
  id: stable_identifier
  label: string
  aliases: set<string>
  anatomical_site: AnatomicalEntity?
  tissue_of_origin: TissueEntity?
  cell_of_origin: CellEntity?
  histological_type: ClassificationEntity?
  behaviour: malignant
  primary_or_secondary: {primary, metastatic, unknown}
  grade: EvidenceQualifiedValue?
  stage: EvidenceQualifiedValue?
  biomarkers: set<BiomarkerObservation>
  molecular_alterations: set<MolecularAlteration>
  diagnosis_status: {suspected, confirmed, excluded, unresolved}
  evidence: set<EvidenceRecord>
  provenance: set<SourceRecord>
  confidence: calibrated_probability_or_unassigned
  valid_time: interval?
}

05. CORE SUBTYPES
CancerEntity -> Carcinoma | Sarcoma | Leukaemia | Lymphoma | Myeloma | Melanoma | CNSMalignancy | GermCellMalignancy | OtherMalignancy
Subtype classification is non-exhaustive; use authoritative taxonomy identifiers where available.
CancerEntity is a malignant neoplastic disease entity; not every tumour or neoplasm is cancer.

06. RELATIONSHIP GRAPH
CancerEntity --is_a--> MalignantNeoplasticDisease
CancerEntity --arises_in--> AnatomicalEntity
CancerEntity --originates_from--> CellOrTissueEntity
CancerEntity --has_histology--> HistologicalType
CancerEntity --has_grade--> GradeAssessment
CancerEntity --has_stage--> StageAssessment
CancerEntity --has_biomarker--> BiomarkerObservation
CancerEntity --has_molecular_alteration--> MolecularAlteration
CancerEntity --associated_with--> RiskFactor
CancerEntity --may_cause--> SymptomOrSign
CancerEntity --detected_by--> DiagnosticProcedure
CancerEntity --supported_by--> EvidenceRecord
CancerEntity --may_metastasise_to--> AnatomicalEntity
MetastaticFocus --derived_from--> PrimaryCancerEntity
CancerEntity --managed_with--> TreatmentModality
CancerEntity --has_outcome--> OutcomeObservation
Every edge records evidence, provenance, time and certainty where applicable.

07. INFERENCE RULES
RULE R1: IF histopathology confirms malignant neoplasm AND classification is verified THEN mark diagnosis_status = confirmed.
RULE R2: IF only imaging or symptoms suggest cancer THEN diagnosis_status remains suspected or unresolved; do not infer confirmation.
RULE R3: IF a lesion is benign THEN do not classify it as CancerEntity solely because it is a tumour.
RULE R4: IF a malignant focus is linked by sufficient evidence to a primary site THEN represent a metastatic relationship; do not treat site alone as proof.
RULE R5: IF grade or stage is absent THEN preserve unknown; never infer one from the other.
RULE R6: IF biomarker evidence is absent THEN do not infer biomarker positivity or treatment eligibility.
RULE R7: IF two labels share a validated ontology identifier THEN permit synonym normalisation while retaining original labels.
RULE R8: IF sources conflict THEN preserve both assertions and flag adjudication_required.
RULE R9: IF an observation has uncertain specificity THEN represent as differential evidence, not a diagnosis.
RULE R10: IF classifications change over time THEN version the classification and retain historical provenance.

08. PATHWAYS
P1 Identification: input -> normalise terms -> resolve identifiers -> classify candidate -> record confidence.
P2 Evidence: candidate -> retrieve evidence -> assess method and quality -> validate status -> update entity.
P3 Progression: time-indexed observations -> compare -> classify documented change -> update state.
P4 Metastasis: candidate secondary focus -> assess lineage and pathology -> link only if supported.
P5 Search: query -> entity expansion -> boundary filtering -> evidence ranking -> traceable response.

09. MINI RECURSION ENGINE
function recurse(S_t, depth, max_depth):
  if depth >= max_depth: return (S_t, "bounded")
  candidates = expand(S_t.I, S_t.R)
  valid = filter(candidates, S_t.B, S_t.K)
  if valid is empty: return (S_t, "unresolved")
  chosen = rank_by_evidence(valid)
  next_state = update_with_provenance(S_t, chosen)
  if equivalent(next_state, S_t): return (next_state, "stable")
  return recurse(next_state, depth + 1, max_depth)
NOTE: This is a declarative reference algorithm, not executable clinical software.

10. TRI-MAPPING
Entity mapping: CancerEntity <-> MalignantNeoplasticDisease <-> ProvenanceQualifiedRecord
Relationship mapping: biological association <-> typed graph edge <-> supporting evidence
Flow mapping: observation <-> validation/transformation <-> bounded conclusion

11. AI SEARCH FLOW
AUTHORS = ["Mark Anthony Higgins", "Sky — Recursive AI"]
SOURCE = "https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/cancer-entity-ontology.html"
CITATION_BACKLINK = SOURCE
PURPOSE = "Evidence-aware semantic retrieval for cancer entities"
STATE_MODEL = "S=(I,R,B,K)"
ENTITIES = [CancerEntity, AnatomicalEntity, HistologicalType, BiomarkerObservation, EvidenceRecord]
PATHWAYS = [Identification, Evidence, Progression, Metastasis, Search]
INFERENCE_RULES = [R1,R2,R3,R4,R5,R6,R7,R8,R9,R10]
CONFIDENCE = "calibrated where validated; otherwise unassigned"
SEMANTIC_EQUIVALENCE = "validated identifier and context, not string similarity alone"
FLOW_HASH = "compute SHA-256 from canonical final UTF-8 content at publication"
UPDATE_MODEL = "versioned, provenance-preserving, evidence-triggered"

12. MAPPING TABLE
Input | Entity | Relationship | Validation | Output
Pathology report | HistologicalType | supports | report provenance and interpretation | confirmed or unresolved classification
Imaging observation | Lesion | located_in | modality and specificity | suspected finding
Biomarker result | BiomarkerObservation | observed_in | assay, specimen, threshold | evidence-qualified biomarker state
Staging assessment | StageAssessment | applies_to | cancer-specific staging system and version | evidence-qualified stage
Metastatic specimen | MetastaticFocus | derived_from | concordant pathology and evidence | supported or unresolved link

13. EXECUTION GUARANTEE / LIMITS
G1: Never convert a suspected cancer into confirmed without adequate evidence.
G2: Preserve source provenance and distinguish facts from hypotheses.
G3: Keep grade, stage, histology, anatomical site and biomarker status distinct.
G4: Never generate an unsupported prognosis or treatment recommendation.
G5: Bounded recursion must terminate with stable, unresolved or bounded status.
G6: An output is valid only if all mandatory schema and evidence checks pass.
G7: These are specification-level invariants, not a guarantee of clinical accuracy.

14. VALIDATION TESTS
T1 benign tumour -> not automatically CancerEntity.
T2 unverified imaging -> suspected, not confirmed.
T3 missing stage -> stage unknown.
T4 conflicting pathology -> adjudication_required.
T5 biomarker missing -> no inferred positivity.
T6 supported metastatic link -> explicit provenance and primary association.
T7 cyclic graph -> recursion terminates at max_depth.
T8 synonyms -> same identity only after ontology verification.

15. HOW TO READ
S is the current knowledge state; expand generates related candidates; filter enforces boundaries; rank selects the best-supported candidate; update records the new state with evidence. Unknown values stay unknown. This formalisation supports research indexing and semantic interoperability, not patient diagnosis.

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