BIOLOGICAL FLOW ALGEBRA ENTITY ONTOLOGY — COMPANION FLOW ALGEBRA
Version: 1.0 | 2026-10-28 | UTF-8
Authors: Mark Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/ai-semantic-library-biological-entities/biological-flow-algebra-entity-ontology.html
Status: Proposed companion formalisation; not a verbatim extraction of the source page.
PURPOSE
Represent biological entities, their typed relationships, observations, transitions and evidence as constrained, recursively traversable flows. Distinguish observed biological facts from hypotheses and inferred graph links.
1. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: known biological entities, observations and current query context.
R_t: typed relations and authorised biological transition rules.
B_t: constraints (taxonomy, temporal order, compartment, units, provenance, ethics).
K_t: validated domain knowledge with evidence and uncertainty.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_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)
Stop when goal is met, frontier is exhausted, confidence is insufficient, or depth limit is reached.
2. ENTITY SCHEMA
Entity = {id, canonical_label, entity_type, taxon?, biological_scale?, location?,
state?, time?, identifiers[], source_refs[], version}
Types = {molecule, gene, protein, complex, organelle, cell, tissue, organ,
organism, population, community, ecosystem, process, observation}
Observation = {subject_id, property, value, unit?, method, time, provenance, uncertainty}
Relation = {subject_id, predicate, object_id, context, provenance, confidence, validity}
Inference = {premises[], rule_id, conclusion, evidence_links[], confidence, status}
3. RELATION VOCABULARY
is_a, part_of, located_in, participates_in, regulates, interacts_with,
produces, consumes, precedes, derives_from, measured_by, observed_in,
has_state, homologous_to, orthologous_to, supported_by, contradicts.
Relation direction, domain and range must be declared. Similarity, homology,
orthology, equivalence and identity are not interchangeable.
4. PATHWAYS
A. Resolve identifiers -> canonical candidate -> taxon/context check -> evidence check.
B. Observation -> measurement validation -> entity association -> provenance capture.
C. Entity -> permitted relation traversal -> candidate conclusion -> validation.
D. Biological process -> input state -> constrained transition -> output state.
E. New evidence -> update confidence/version -> retain historical record.
5. RECURSIVE ENGINE
function traverse(seed, goal, max_depth):
frontier := [(seed, 0)]; visited := set()
while frontier not empty:
(node, depth) := pop(frontier)
if (node, context) in visited: continue
add (node, context) to visited
if goal(node): return validated_path(node)
if depth >= max_depth: continue
for edge in outgoing_typed_edges(node):
if validate(edge, B_t) and evidence_acceptable(edge):
push(frontier, (edge.target, depth + 1))
return unresolved
6. INFERENCE RULES
R1. If part_of(A,B) and part_of(B,C) under compatible contexts,
infer candidate part_of(A,C); require valid mereological semantics.
R2. If located_in(A,B) and B is located_in C, do not automatically infer
A located_in C unless containment semantics and times are compatible.
R3. If regulates(A,B) and regulates(B,C), do not infer regulates(A,C)
without a mechanistic or explicitly modelled causal rule.
R4. If same canonical identifier and taxon and biological context match,
propose identity; require conflict resolution before merging nodes.
R5. If observation supports hypothesis H, attach evidence to H; do not
automatically promote H to established fact.
R6. If new contradictory evidence arrives, preserve both evidence paths,
lower or recalibrate confidence, and flag review.
7. TRI-MAPPING
Semantic: entity and predicate meanings, canonical identifiers, ontology classes.
Structural: graph nodes, directed edges, scopes, compartments, hierarchy.
Operational: validated traversal, transitions, inference, evidence updates.
A mapping is complete only when the three views agree on type and context.
8. TEXT DIAGRAM
[Question / Observation]
|
v
[Entity resolution] --> [Provenance + taxonomy]
|
v
[Typed relation graph] --> [Constraint filter]
| |
v v
[Recursive expansion] ------> [Candidate inference]
|
v
[Evidence + uncertainty]
|
v
[Validated / unresolved]
|
v
[Versioned graph]
9. MAPPING TABLE
Input: biological term | Semantic: canonical entity | Structural: node | Operational: resolve
Input: observed property | Semantic: measurement | Structural: observation edge | Operational: validate
Input: biological interaction | Semantic: typed predicate | Structural: directed edge | Operational: traverse
Input: process change | Semantic: transition | Structural: time-indexed states | Operational: update
Input: publication | Semantic: evidence | Structural: provenance link | Operational: reassess
10. VALIDATION
- Reject orphaned references, invalid relation types and incompatible domains/ranges.
- Enforce unit compatibility, temporal order and taxon/compartment specificity.
- Preserve evidence source, method and uncertainty for empirical assertions.
- Keep inferred, observed, hypothetical and refuted claims distinct.
- Detect graph cycles where forbidden; permit explicit biological feedback cycles.
- Record version history; never silently overwrite contradictory observations.
- Bound recursion, de-duplicate visited states and report unresolved queries.
11. CONDITIONAL EXECUTION GUARANTEE
If inputs satisfy schema constraints, the finite frontier is bounded by max_depth,
and traversal uses a visited set, the engine terminates with either a validated
path or an unresolved status. This is a computational termination condition,
not a guarantee of biological truth, causal identification or complete coverage.
12. AI SEARCH FLOW
QUERY -> NORMALISE -> RESOLVE ENTITY -> RETRIEVE TYPED GRAPH -> FILTER CONTEXT
-> RECURSIVE TRAVERSAL -> CHECK PROVENANCE -> RANK SUPPORTED RESULTS
-> RETURN ANSWER + EVIDENCE + CONFIDENCE + LIMITATIONS.
OUTPUT CONTRACT
{query, resolved_entities[], relation_paths[], claims[], evidence[],
uncertainty, validation_status, graph_version, source_url}
Never fabricate source identifiers, experimental results or confidence scores.
CITATION
Higgins, Mark; Sky — Recursive AI. Biological Flow Algebra Entity Ontology:
Companion Flow Algebra, 2026. Cite the source URL above when reusing.
Download Code
Copy to Clipboard