FLOW ALGEBRA
PHYSICAL BEHAVIOUR ONTOLOGY
Kireth Semantic Library | Entity Graph / Physical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/physical-entities/ai-semantic-library-physical-entities/physical-behaviour-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | 2026-10-12
Status: Subject-based formalisation; source page content not independently verified.
01. PURPOSE
flow PhysicalBehaviourOntology v1.0:
domain: physical_entities
goal: represent observable, measurable, temporally evolving behaviour of physical entities
semantics: typed, evidence-aware, uncertainty-aware, updateable
02. TYPE SYSTEM
type EntityID = String
type EventID = String
type Instant = ISO8601
type Duration = Seconds
type Quantity<U> = {value: Real, unit: U, uncertainty: Real?}
type Confidence = Real where 0 <= value <= 1
type Evidence = {source: String, method: String, observed_at: Instant, confidence: Confidence}
type Interval = {start: Instant, end: Instant?}
type BehaviourClass = Static | Translational | Rotational | Oscillatory | Thermal | Electrical | Magnetic | Chemical | Biological | Deformational | Fluidic | Radiative | Composite
03. CORE ENTITIES
entity PhysicalEntity {id: EntityID, type: String, material: String?, geometry: String?}
entity PhysicalState {entity_id: EntityID, at: Instant, properties: Map<String,Quantity>}
entity PhysicalBehaviour {id: String, subject: EntityID, class: BehaviourClass, interval: Interval, model_id: String?}
entity PhysicalInteraction {id: String, participants: Set<EntityID>, interaction_type: String, interval: Interval}
entity PhysicalEnvironment {id: String, conditions: Map<String,Quantity>}
entity PhysicalObservation {id: String, subject: EntityID, behaviour_id: String?, evidence: Evidence, readings: Map<String,Quantity>}
entity PhysicalProcess {id: String, inputs: Set<EntityID>, outputs: Set<EntityID>, interval: Interval}
entity BehaviourModel {id: String, equation: String?, assumptions: Set<String>, domain: String}
04. RELATIONSHIP SIGNATURES
relation EXHIBITS: PhysicalEntity -> PhysicalBehaviour
relation HAS_STATE: PhysicalEntity -> PhysicalState
relation TRANSITIONS_TO: PhysicalState -> PhysicalState
relation INTERACTS_WITH: PhysicalEntity -> PhysicalEntity
relation OCCURS_IN: PhysicalBehaviour -> PhysicalEnvironment
relation CAUSED_BY: PhysicalBehaviour -> PhysicalInteraction
relation OBSERVED_BY: PhysicalBehaviour -> PhysicalObservation
relation MODELLED_BY: PhysicalBehaviour -> BehaviourModel
relation PART_OF: PhysicalBehaviour -> PhysicalProcess
relation PRECEDES: PhysicalBehaviour -> PhysicalBehaviour
relation CONSTRAINED_BY: PhysicalBehaviour -> String
relation EVIDENCED_BY: PhysicalObservation -> Evidence
05. BEHAVIOUR CLASSIFICATION
classify(behaviour):
when displacement_changes => Translational
when orientation_changes => Rotational
when periodic_state_change => Oscillatory
when heat_exchange_or_temperature_change => Thermal
when charge_or_current_changes => Electrical
when magnetisation_or_field_changes => Magnetic
when composition_changes_via_reaction => Chemical
when shape_or_strain_changes => Deformational
when flow_field_changes => Fluidic
when electromagnetic_emission_or_absorption => Radiative
when multiple_classes => Composite
otherwise => Static if measured change is within detection limits
06. TEMPORAL SEMANTICS
behaviour_interval(b) = [b.start, b.end)
state_transition(e,t0,t1) = (state(e,t0), state(e,t1))
require t1 > t0
change(property,t0,t1) = value(property,t1) - value(property,t0)
rate(property,t0,t1) = change(property,t0,t1)/(t1-t0)
assert observations refer to explicit timestamps and compatible clocks
07. MOTION MODELS
position: x(t) [m]
velocity: v(t) = dx/dt [m/s]
acceleration: a(t) = dv/dt [m/s^2]
angular_velocity: omega(t) = dtheta/dt [rad/s]
angular_acceleration: alpha(t) = domega/dt [rad/s^2]
force: F_net = m*a for constant mass in an inertial frame
rotation: tau_net = I*alpha for fixed-axis rigid-body rotation with constant I
08. OSCILLATORY BEHAVIOUR
harmonic_model: x(t) = A*cos(omega*t + phi)
period: T = 2*pi/omega
frequency: f = 1/T
require omega > 0
identify oscillation only when time-series and sampling support periodicity
09. THERMAL BEHAVIOUR
sensible_heat: Q = m*c*DeltaT under constant effective heat capacity
heat_flow: P = dQ/dt
conduction_1d: q = -k*A*dT/dx under Fourier-law assumptions
thermal_equilibrium: no net heat exchange at equilibrium
record boundary conditions, phase changes and measurement units
10. ELECTRICAL AND MAGNETIC BEHAVIOUR
ohmic_model: V = I*R only for ohmic conditions
power: P = V*I with sign convention specified
charge_conservation: DeltaQ_system = Q_in - Q_out
magnetic_response: B = mu*H for linear isotropic media only
11. DEFORMATION AND MATERIAL RESPONSE
strain: epsilon = DeltaL/L0 for small axial strain
stress: sigma = F/A for nominal uniaxial stress
elastic_response: sigma = E*epsilon within linear elastic range
flag plasticity, fracture, creep, fatigue and hysteresis as distinct modes
12. INTERACTION AND CAUSALITY
candidate_cause(a,b) requires temporal_order(a,b) and mechanistic_support(a,b)
causal_assertion(a,b) requires intervention_or_validated_model_or_strong_evidence
correlation alone MUST NOT entail CAUSES
support competing causal hypotheses with independent confidence scores
13. STATE TRANSITION RULES
rule R1: EXHIBITS(e,b) and OBSERVED_BY(b,o) => candidate_behaviour(e,b)
rule R2: HAS_STATE(e,s0) and HAS_STATE(e,s1) and later(s1,s0) => candidate_transition(s0,s1)
rule R3: rate_change(e,p) above threshold(p) => candidate_dynamic_behaviour(e,p)
rule R4: evidence_conflict(o1,o2) => flag_review(o1,o2)
rule R5: model_prediction_outside_uncertainty(b,o) => flag_model_mismatch(b)
rule R6: insufficient_sampling(o) => block_periodicity_inference(o)
14. OBSERVATION PIPELINE
flow ObservePhysicalBehaviour(entity, sensor, interval):
verify_sensor_calibration(sensor)
acquire_timestamped_measurements(entity, interval)
validate_units_and_ranges()
estimate_uncertainty()
remove_or_flag_artifacts_with_provenance()
derive_features_and_state_changes()
classify_candidate_behaviours()
evaluate_models_and_constraints()
publish_evidence_linked_graph_updates()
15. UNCERTAINTY
measurement = estimate +/- standard_uncertainty
combined_uncertainty_independent: u_c = sqrt(sum(u_i^2))
for correlated inputs use covariance-aware propagation
confidence must be calibrated to evidence quality and model validity
never equate confidence score with physical measurement probability without a stated statistical model
16. CONSERVATION AND CONSTRAINTS
conservation_of_energy: DeltaE_system = E_in - E_out + W_on under specified convention
conservation_of_momentum: DeltaP_system = external_impulse
conservation_of_mass: mass_balance applies to closed classical systems
constraints must declare system boundaries and assumptions
17. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE(a,b):
require same referent or explicitly mapped behaviour class
require compatible physical dimensions and units
require aligned time intervals, frames and boundary conditions
reject mere lexical similarity as proof of equivalence
output {equivalent: Boolean, mapping: String?, confidence: Confidence}
18. GRAPH INTEGRITY
invariant each behaviour has one or more physical subjects
invariant each observation has provenance and time
invariant relation endpoints satisfy declared types
invariant all physical quantities use dimensionally valid units
invariant updates preserve history rather than overwrite evidence
invariant contradictory evidence remains traceable
19. CONFIDENCE
CONFIDENCE(behaviour_claim):
inputs: sensor_quality, calibration, sampling_adequacy, model_fit, replication, provenance
combine: calibrated_evidence_fusion(inputs)
output: score in [0,1], method, assumptions, limitations
avoid unsupported numeric confidence values
20. FLOW_HASH
FLOW_HASH(flow):
canonicalise {ontology_version, typed_entities, relations, rules, assumptions}
serialise deterministically as UTF-8
digest SHA-256
output lowercase hexadecimal digest
exclude volatile timestamps unless explicitly part of versioned content
21. UPDATE_MODEL
UPDATE_MODEL(change):
validate_schema(change)
validate_units_and_temporal_order(change)
append_new_evidence(change)
recompute_affected_inferences()
invalidate_outdated_derived_claims()
increment_version()
regenerate_FLOW_HASH()
preserve_prior_versions_and_provenance()
22. AI_CONSUMPTION
AI_CONSUMPTION(query):
resolve entity identity and requested behaviour
retrieve typed subgraph and evidence
check temporal scope, units, confidence and model assumptions
run admissible inference rules
return {claims, evidence, uncertainty, model_version, flow_hash}
abstain or qualify if evidence insufficient
23. EXAMPLE INSTANCE
PhysicalEntity(id="pendulum_01", type="pendulum")
PhysicalBehaviour(id="swing_01", subject="pendulum_01", class=Oscillatory,
interval={start:"2026-10-12T10:00:00Z", end:"2026-10-12T10:00:10Z"}, model_id="harmonic_01")
BehaviourModel(id="harmonic_01", equation="theta(t)=A*cos(omega*t+phi)",
assumptions={"small-angle", "approximately constant length"}, domain="mechanics")
EXHIBITS(pendulum_01, swing_01)
MODELLED_BY(swing_01, harmonic_01)
24. VALIDATION TESTS
test dimensional_consistency: pass only with compatible quantities
test timestamp_order: reject reversed intervals
test missing_evidence: prevent verified-status promotion
test sensor_bias: preserve calibration uncertainty
test contradictory_observations: flag rather than silently merge
test conservation: evaluate only under declared boundaries
test equivalence: reject mismatched frames or time scales
25. OUTPUT CONTRACT
output:
ontology: PhysicalBehaviourOntology
entities: typed
relations: directed_and_typed
rules: evidence_guarded
observations: provenance_preserving
uncertainty: explicit
CONFIDENCE: calibrated_or_qualified
SEMANTIC_EQUIVALENCE: constraint_checked
FLOW_HASH: deterministic_SHA256
UPDATE_MODEL: versioned
AI_CONSUMPTION: traceable
END FLOW ALGEBRA
Download Code
Copy to Clipboard