FLOW ALGEBRA
Larva Ontology — Developmental Biological Entities
Version: 1.0 | Date: 2026-10-19 | Locale: en-GB
Source URL: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/developmental-biological-entities/larva-ontology.html
Status: Independently developed scientific draft; source page not verified.
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Model larval stages as organism- and taxon-dependent developmental entities, including morphology, ecology, transitions, and evidence-qualified biological inferences. A larva is a post-embryonic immature form distinct in structure or ecology from a later life stage; not all animals have larval stages.
2. TYPE SYSTEM
ENTITY: BiologicalEntity
-> Organism; DevelopmentalStage; AnatomicalStructure; Tissue; Cell; Habitat; Taxon; DevelopmentalEvent; Observation; Evidence
DevelopmentalStage -> EmbryonicStage | LarvalStage | PupalStage | JuvenileStage | AdultStage
LarvalStage -> InsectLarva | AmphibianLarva | MarineInvertebrateLarva | FishLarva | OtherLarvalStage
DevelopmentalEvent -> Hatching | Growth | Moulting | Metamorphosis | Settlement | Pupation
Observation -> MorphologicalObservation | MolecularObservation | BehaviouralObservation | TemporalObservation
3. ENTITY SCHEMA
Larva {
id: URI; taxon: Taxon; organism_id: URI;
stage_label: string; stage_order: integer?;
morphology: set[AnatomicalStructure];
habitat: Habitat?; feeding_mode: string?;
start_event: DevelopmentalEvent?; end_event: DevelopmentalEvent?;
preceding_stage: DevelopmentalStage?; following_stage: DevelopmentalStage?;
observation_time: ISO8601?; confidence: float[0,1];
provenance: set[Evidence]; version: string
}
4. TYPED RELATIONSHIPS
is_a(Larva, DevelopmentalStage)
has_stage(Organism, LarvalStage)
instance_of(LarvalStage, Taxon)
precedes(DevelopmentalStage, DevelopmentalStage)
develops_into(DevelopmentalStage, DevelopmentalStage)
has_structure(Larva, AnatomicalStructure)
inhabits(Larva, Habitat)
feeds_on(Larva, BiologicalEntity)
undergoes(Larva, DevelopmentalEvent)
observed_by(Larva, Observation)
supported_by(Assertion, Evidence)
5. BIOLOGICAL CONSTRAINTS
C1: Every Larva is associated with one organism and a taxonomic context.
C2: Stage order is local to the taxon's life cycle; do not impose one universal sequence.
C3: In holometabolous insects, larva generally precedes pupa, which precedes adult.
C4: In many amphibians, a larval tadpole transitions to a juvenile via metamorphosis.
C5: Larvae may be free-living, parasitic, planktonic or otherwise specialised.
C6: A larval stage is not equivalent to a juvenile stage across all taxa.
C7: Morphological traits alone are not sufficient for universal larval identification.
C8: A larva may pass through multiple instars; instar is not universally applicable.
6. FLOW RULES (DECLARATIVE)
RULE R01:
IF instance_of(s, HolometabolousInsectLarva) AND valid_life_cycle(s)
THEN expected_successor_type(s, PupalStage)
CONFIDENCE: 0.98 | KIND: taxon-qualified expectation
RULE R02:
IF instance_of(s, AmphibianLarva) AND evidence_of_metamorphosis(s)
THEN transition_process(s, Metamorphosis)
CONFIDENCE: 0.95 | KIND: evidence-dependent
RULE R03:
IF observed_moult(s, event) AND stage_is_instar_based(s)
THEN possible_instar_transition(s, event)
CONFIDENCE: 0.90 | KIND: provisional
RULE R04:
IF larval_morphology_differs_from_adult(s) AND supported_by_taxonomic_evidence(s)
THEN classify_candidate(s, LarvalStage)
CONFIDENCE: 0.85 | KIND: defeasible
RULE R05:
IF contradictory_stage_evidence(s)
THEN flag_for_review(s)
CONFIDENCE: 1.00 | KIND: validation
7. SEMANTIC_EQUIVALENCE
larva ~= larval_stage WHEN reference denotes the developmental stage.
larva != pupa; larva != embryo; larva != adult.
tadpole IS_A amphibian_larva for relevant amphibian taxa.
caterpillar IS_A insect_larva for Lepidoptera.
maggot (common name) MAY_REFER_TO fly_larva; resolve taxon before mapping.
Never assert universal equivalence of 'larva', 'nymph', 'juvenile' or 'instar'.
8. CONFIDENCE
CONFIDENCE range: [0.0, 1.0].
Score observations using taxonomic identification, direct developmental evidence, source quality, and consistency.
Combine independent evidence only after dependence checks; retain uncertainty and competing classifications.
Thresholds: >=0.95 high; >=0.80 supported; >=0.60 provisional; below 0.60 unresolved.
Rule confidence is a modelling default, not measured biological probability.
9. PROVENANCE
For each assertion retain source_uri, source_type, observation_method, author_or_institution, timestamp, taxon, version, licence, and review_status.
Preserve original evidence and distinguish observed facts from inferred claims.
10. FLOW_HASH
Canonicalise schema and rules as UTF-8 with sorted entity IDs, normalised whitespace and deterministic key ordering.
FLOW_HASH = SHA256(canonical_schema + canonical_rules + version + source_identifiers)
Hash is computed by an implementation; no uncomputed digest is asserted here.
11. UPDATE_MODEL
On new observations: validate schema -> resolve taxon -> compare stage chronology -> update confidence -> record provenance -> recompute affected inferences -> increment version -> recompute FLOW_HASH.
Never overwrite contradictory observations; preserve revision history.
12. AI_CONSUMPTION
Input: typed larval records, taxonomy, observations, and provenance.
Output: validated entity graph, stage relationships, uncertainty-qualified inferences, and explanation traces.
Reject unsupported universal stage sequences and species-generalised developmental timing.
Expose human-readable labels alongside stable machine identifiers.
13. EXAMPLE (ILLUSTRATIVE)
organism: butterfly_001
stage: caterpillar_001
instance_of: LepidopteranLarva
precedes: chrysalis_001
process: metamorphosis
confidence: 0.96
provenance: illustrative_example_only
14. VALIDATION
Check required identifiers, taxonomic scope, relationship typing, stage chronology, confidence bounds, provenance presence, and rule conflicts. Validate life-cycle exceptions before publication.
END FLOW ALGEBRA
Download Code
Copy to Clipboard