FLOW ALGEBRA
TITLE: Lineage Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Taxonomic Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/taxonomic-entities/lineage-ontology-2.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library
DATE: 2026-10-19
PURPOSE
Represent evolutionary lineages as evidence-qualified ancestry and descent relationships across taxa, populations, and sampled organisms. Support phylogenetic inference without conflating genealogical lineage, taxonomic rank, and monophyletic clade.
ENTITY TYPES
BiologicalEntity
Organism <: BiologicalEntity
Population <: BiologicalEntity
Taxon <: BiologicalEntity
Lineage <: BiologicalEntity
AncestralLineage <: Lineage
DescendantLineage <: Lineage
EvolutionaryBranch <: Lineage
GeneLineage <: Lineage
SpeciesLineage <: Lineage
PhylogeneticTree
PhylogeneticNode
EvolutionaryEvent
SpeciationEvent <: EvolutionaryEvent
DivergenceEvent <: EvolutionaryEvent
HybridisationEvent <: EvolutionaryEvent
HorizontalGeneTransferEvent <: EvolutionaryEvent
EvidenceRecord
TimeInterval
TaxonomicConcept
TYPED RELATIONSHIPS
descends_from(Lineage, Lineage) -> Boolean
ancestor_of(Lineage, Lineage) -> Boolean
immediate_parent_lineage(Lineage, Lineage) -> Boolean
sister_lineage_of(Lineage, Lineage) -> Boolean
shares_common_ancestor(Lineage, Lineage, Lineage) -> Boolean
belongs_to_lineage(Taxon, Lineage) -> Boolean
represented_by(Lineage, PhylogeneticNode) -> Boolean
appears_in(Lineage, PhylogeneticTree) -> Boolean
branches_at(Lineage, DivergenceEvent) -> Boolean
produced_by(Lineage, SpeciationEvent) -> Boolean
receives_genetic_material_from(Lineage, Lineage) -> Boolean
supported_by(Lineage, EvidenceRecord) -> Boolean
temporal_extent(Lineage, TimeInterval) -> Boolean
uses_taxonomic_concept(Lineage, TaxonomicConcept) -> Boolean
FLOW DEFINITIONS
flow "LineageClassification" v1.0
input: entity:BiologicalEntity, evidence:EvidenceRecord[]
require: evidence provenance and taxonomic context are recorded
derive: candidate lineage assignment from supported ancestry relationships
output: lineage:Lineage?, confidence:Float[0..1], evidence_ids:String[]
flow "AncestryClosure" v1.0
input: child:Lineage, parent:Lineage
rule: immediate_parent_lineage(child,parent) => descends_from(child,parent)
rule: descends_from(a,b) AND descends_from(b,c) => descends_from(a,c)
guard: a != b AND no unsupported ancestry cycles
output: inferred_ancestry with derivation provenance
flow "CommonAncestry" v1.0
input: a:Lineage, b:Lineage, candidate:Lineage
rule: descends_from(a,candidate) AND descends_from(b,candidate)
=> shares_common_ancestor(a,b,candidate)
guard: a != b; ancestry claims must use compatible phylogenetic hypotheses
note: common ancestry alone does not establish a unique most recent ancestor
output: ancestry_claim, supporting_evidence, confidence
flow "SisterLineageInference" v1.0
input: tree:PhylogeneticTree, a:Lineage, b:Lineage
require: a and b share an immediate parent node in the specified rooted tree
guard: topology is resolved; do not infer from taxonomic rank alone
output: sister_lineage_of(a,b) scoped to tree
flow "EvolutionaryEvents" v1.0
input: lineage:Lineage, event:EvolutionaryEvent
classify: speciation | divergence | hybridisation | horizontal_gene_transfer
guard: distinguish vertical descent from reticulate genetic exchange
output: event-linked lineage graph with temporal and evidence annotations
INVARIANTS AND CONSTRAINTS
C01: Ancestry is irreflexive in a strictly acyclic vertical-descent model.
C02: A lineage is not necessarily a named taxon or formal taxonomic rank.
C03: A lineage is not automatically a monophyletic clade.
C04: Gene trees and species trees may disagree; preserve their distinct scopes.
C05: Horizontal gene transfer and hybridisation require network-aware representation.
C06: Ancestor and descendant time ranges must be chronologically compatible.
C07: Phylogenetic hypotheses can change as evidence and methods improve.
C08: Absence of evidence is not evidence of absence of ancestry.
SEMANTIC_EQUIVALENCE
exact_equivalence: only when identifiers, definition, ancestry scope, and taxonomic concept agree
close_match: overlapping evolutionary lineage concepts without identity guarantee
related_match: clade, branch, taxon, descent group, genealogical line
prohibit: automatically equating lineage with clade, species, or breed
CONFIDENCE
range: 0.0..1.0
dimensions: sequence_support, morphological_support, fossil_support,
phylogenetic_method_support, temporal_consistency, source_quality
aggregation: calibrated, method-specific; do not average incompatible support statistics
unresolved: mark unknown rather than invent numerical certainty
preserve: bootstrap support and posterior probability as distinct measures
PROVENANCE
required: source_identifier, evidence_type, method, publication_or_dataset,
observation_date_if_known, inference_timestamp, taxonomic_concept_version
optional: sequence_accession, specimen_identifier, tree_identifier, software_version
FLOW_HASH
canonicalise: entity IDs, relation types, evidence IDs, hypothesis scope, version
algorithm: SHA-256
value: compute at ingestion; no fabricated digest
purpose: integrity checks and reproducible change detection
UPDATE_MODEL
triggers: new phylogeny, taxonomic revision, fossil discovery,
molecular evidence, corrected identification, revised chronology
procedure: validate -> preserve previous version -> recompute dependent inferences
-> record changed relations -> update hash -> publish revision
conflicts: retain competing supported hypotheses with provenance
AI_CONSUMPTION
format: UTF-8 text; machine-readable typed triples and rules
reasoning: apply guarded transitive ancestry only within a compatible model
retrieval: lineage name, taxon, ancestor, descendant, tree, evidence, date
output: distinguish asserted facts from inferred claims
safety: do not convert phylogenetic uncertainty into categorical claims
interoperability: map to established taxonomic and phylogenetic identifiers when available
EXAMPLE (ILLUSTRATIVE, NOT A VERIFIED PHYLOGENY)
immediate_parent_lineage(Lineage_B, Lineage_A)
immediate_parent_lineage(Lineage_C, Lineage_B)
=> descends_from(Lineage_C, Lineage_A)
evidence_status: hypothetical
END FLOW ALGEBRA
Download Code
Copy to Clipboard