Skip to main content

Flow Network Ontology

Graph and Network Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
FLOW NETWORK ONTOLOGY
Kireth Semantic Library | Graph and Network Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/graph-and-network-entities/flow-network-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed mathematical formalisation; source page wording not independently verified.
Version: 1.0 | 2026-10-14

1. DOMAIN AND TYPES
TYPE Vertex := unique graph node identifier
TYPE DirectedEdge := (tail: Vertex, head: Vertex, edge_id: Identifier)
TYPE Capacity := Real where value >= 0
TYPE FlowValue := Real where value >= 0
TYPE FlowNetwork := (V: finite set[Vertex], E: finite set[DirectedEdge], s: Vertex, t: Vertex, c: E -> Capacity)
TYPE FeasibleFlow := (network: FlowNetwork, f: E -> FlowValue)
TYPE ResidualArc := (tail: Vertex, head: Vertex, original_edge: DirectedEdge, direction: {forward,reverse}, residual_capacity: Real)
TYPE Cut := (S: set[Vertex], T: set[Vertex])

2. PRECONDITIONS AND INVARIANTS
REQUIRE s in V AND t in V AND s != t
REQUIRE each edge endpoint in V
REQUIRE c(e) >= 0 for every e in E
INVARIANT capacity_constraint: 0 <= f(e) <= c(e) for every e in E
INVARIANT conservation: for every v in V minus {s,t}, sum_{e:head(e)=v} f(e) = sum_{e:tail(e)=v} f(e)
DEFINE value(f) := sum_{e:tail(e)=s} f(e) - sum_{e:head(e)=s} f(e)
INVARIANT terminal_balance: value(f) = sum_{e:head(e)=t} f(e) - sum_{e:tail(e)=t} f(e)
NOTE: Parallel edges remain distinct through edge_id; self-loops, if permitted, contribute equally to inflow and outflow.

3. RELATIONSHIP ONTOLOGY
FlowNetwork HAS_VERTEX Vertex
FlowNetwork HAS_EDGE DirectedEdge
DirectedEdge HAS_TAIL Vertex
DirectedEdge HAS_HEAD Vertex
DirectedEdge HAS_CAPACITY Capacity
FeasibleFlow ASSIGNS_FLOW DirectedEdge
ResidualArc DERIVED_FROM DirectedEdge
AugmentingPath CONNECTS Source TO Sink IN ResidualNetwork
Cut PARTITIONS VertexSet
MaximumFlow DUAL_TO MinimumCut

4. RESIDUAL NETWORK
FOR each original edge e=(u,v):
  forward residual arc (u,v,e,forward) has capacity c(e)-f(e)
  reverse residual arc (v,u,e,reverse) has capacity f(e)
  retain only residual arcs with strictly positive capacity
NOTE: Residual arcs are edge-indexed; do not collapse parallel or opposing arcs without preserving identity.

5. EXECUTABLE INFERENCE FLOWS
FLOW ValidateNetwork(network):
  assert finite V,E; s != t; s,t in V; endpoints valid; capacities finite and nonnegative
  return valid or structured errors
FLOW ValidateFeasibleFlow(network,f):
  assert capacity_constraint and conservation within declared numerical tolerance
  return feasible or structured errors
FLOW Augment(network,f,path):
  require path is a source-to-sink path in residual network
  delta := minimum residual_capacity on path
  for arc in path:
    if arc.direction == forward: f(arc.original_edge) += delta
    else: f(arc.original_edge) -= delta
  assert feasibility; return f
FLOW MaximumFlow(network):
  f := zero flow
  while a positive-capacity s-to-t residual path exists:
    f := Augment(network,f,path)
  return f, value(f)
NOTE: Use BFS residual paths for Edmonds-Karp polynomial-time termination with real capacities.

6. CUTS AND THEOREMS
DEFINE cut(S,T) where S union T=V, S intersection T=empty, s in S, t in T
DEFINE cut_capacity(S,T) := sum_{e:tail(e) in S AND head(e) in T} c(e)
THEOREM weak_duality: for every feasible f and s-t cut (S,T), value(f) <= cut_capacity(S,T)
THEOREM max_flow_min_cut: maximum feasible flow value equals minimum s-t cut capacity
THEOREM optimality_certificate: feasible f is maximum iff no s-t augmenting path exists in its residual network
INFERENCE if no residual path exists: S := residual vertices reachable from s; (S,V\S) is a minimum cut

7. SEMANTIC DISTINCTIONS
FlowNetwork != arbitrary graph: requires designated terminals and nonnegative edge capacities.
Capacity != flow: capacity is an upper bound; flow is an assignment satisfying constraints.
Flow conservation != flow creation: internal vertices have zero net flow.
Maximum flow != shortest path: maximum flow optimises throughput, not route length.
Minimum cut != minimum number of edges: cut minimises total directed capacity.
Residual reverse arc != necessarily original reverse edge: it represents cancellable assigned flow.
Network flow != Kireth Flow Algebra execution flow: mathematical throughput and semantic execution are separate concepts.

8. VALIDATION AND EDGE CASES
CHECK zero capacities; disconnected source/sink; parallel edges; antiparallel edges; self-loops; source incoming edges; sink outgoing edges.
CHECK floating-point tolerance is explicit and does not silently permit material constraint violations.
CHECK empty residual path set gives an optimality certificate.
CHECK max-flow value equals reported cut capacity within tolerance.
CHECK capacities and flow units are compatible.

9. SEMANTIC EQUIVALENCE AND CONFIDENCE
SEMANTIC_EQUIVALENCE: s-t flow network ~ capacitated directed network with source and sink (under matching constraints).
NON_EQUIVALENCE: general transportation network without terminals is not necessarily an s-t flow network.
CONFIDENCE: high for standard graph-theoretic definitions and max-flow/min-cut theorem; source-page alignment unverified.

10. FLOW HASH AND UPDATE MODEL
FLOW_HASH := SHA256(canonical_utf8(ontology_identifier, version, sorted_type_signatures, sorted_axioms, sorted_rules))
UPDATE_MODEL: increment version on semantic change; recompute FLOW_HASH; preserve provenance and prior versions.
PROVENANCE: source URL above; formalisation authored independently, not a verbatim transcription.

11. AI CONSUMPTION
AI_CONSUMPTION:
  entity_type: MathematicalEntity/GraphAndNetworkEntity/FlowNetwork
  reasoning: typed validation, residual reachability, flow augmentation, dual certificates
  inputs: vertices, indexed edges, capacities, source, sink, optional candidate flow
  outputs: feasibility, flow value, maximum flow, minimum cut, proof obligations
  guardrails: reject negative capacities, ambiguous edges, unverified optimality claims
  interoperability: GraphOntology, DirectedEdgeOntology, WeightedGraphOntology, PathOntology, NetworkOntology

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