AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — AI SEMANTIC LIBRARY
CONTAINMENT ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-03
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/space-concepts/containment-ontology-2.html
Integration: AI Core / Entity Graph / Abstract Concepts / Space Concepts
Status: Proposed formalisation; not a verified transcription or executable grammar.
1. CANONICAL DEFINITION
Containment is a directed relation between a container A and a contained entity B, such that the spatial support of B is included in the spatial support of A under a common spatial model, reference frame and temporal context. Containment does not imply ownership, physical attachment, causal dependence or functional membership. A container's occupied material and its usable enclosed cavity are different regions and must not be conflated.
2. ENTITY MODEL
C = (id, A, B, S, frame, time, mode, policy, evidence, status, version)
S: ambient spatial domain with declared topology and, optionally, metric.
A, B: identified entities with spatial supports a, b ⊆ S.
mode: inclusive, proper, interior, approximate, functional or symbolic.
policy: boundary inclusion, empty support handling, tolerance and identity rules.
status: established | rejected | unknown | disputed | not_applicable.
Evidence records carry observation time, validity interval, geometry version, source, resolution and uncertainty. Missing geometry is unknown, not the empty set. Distinct entities may have equal spatial supports without being identical.
3. CLASSIFICATION
Inclusive containment: b ⊆ a; equality is allowed.
Proper containment: b ⊂ a; equality is excluded.
Interior containment: b ⊆ int(a); boundary contact is excluded.
Boundary-contact containment: b ⊆ a and b ∩ ∂a ≠ ∅.
Nested containment: a chain of compatible inclusion relations.
Dynamic containment: relation evaluated over time-varying supports.
Approximate containment: tolerance or coverage threshold explicitly declared.
Functional containment: membership under a domain rule, not automatically geometric inclusion.
Symbolic containment: inclusion of represented sets or structures; distinct from physical enclosure.
4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation; g ∘ f applies f then g. Operators below are proposed local notation, not verified published syntax.
Resolve: Entity × Context → Support | Unknown
Align: Support × Frame → Support | Unknown
Intersect: Support × Support → Support
Difference: Support × Support → Support
Interior: Support × Topology → Support
Boundary: Support × Topology → Support
Contains: Support × Support → TruthStatus
Classify: Support × Support × Policy → RelationRecord
Coverage: Support × Support × Measure → Scalar | Undefined
Validate: RelationRecord × Evidence × Policy → Decision
Commit: Graph × ValidatedRecord → VersionedGraph
All binary spatial operations require compatible ambient spaces, frames, units and validity times. Unknown inputs propagate unless independent evidence establishes the result.
5. COMPOSITE FLOWS
(A,B,context) →[Resolve] (a,b) →[Align] (a',b') →[Difference(b',a')] residual →[EmptyTest] inclusion →[Classify] C →[Validate] decision.
Nested flow: Contains(A,B) ∧ Contains(B,D) →[CompatibleContextCheck] Contains(A,D).
Dynamic flow: (A(t),B(t),I) →[ResolveTrajectory] supports →[EvaluateOverInterval] persistence status.
Parallel geometry and evidence branches merge only when versions and contexts match; conflicting results remain disputed pending resolution. A rejected candidate never overwrites an established record without a documented revision decision.
6. MATHEMATICAL SEMANTICS
Contains(A,B) ⇔ b ⊆ a ⇔ b ∖ a = ∅.
Proper(A,B) ⇔ b ⊆ a ∧ a ≠ b.
InteriorContains(A,B) ⇔ b ⊆ int(a).
∂a = cl(a) ∖ int(a).
Contains(A,B) ∧ Contains(B,D) ⇒ Contains(A,D), for exact inclusion in one context.
Contains(A,B) ∧ Contains(B,A) ⇒ a=b, not necessarily A=B.
Exact inclusion is a partial order on sets; on entity identifiers it may be only a preorder.
Coverage(A,B) = μ(a ∩ b)/μ(b), where 0 < μ(b) < ∞ and μ is a compatible measure. Coverage 1 does not establish exact inclusion: omitted points can have measure zero. For point or lower-dimensional supports choose an appropriate measure or exact predicate.
Metric tolerance: b ⊆ {x ∈ S : d(x,a) ≤ ε}, for nonempty a and ε ≥ 0. At ε=0 this tests inclusion in closure(a), not necessarily a. Approximate inclusion is not generally transitive at a fixed tolerance; for metric offsets, successive tolerances may accumulate.
Under a common bijection f, b ⊆ a iff f(b) ⊆ f(a). Interior and boundary preservation additionally require a homeomorphism. Projection can preserve forward inclusion but cannot establish original inclusion from projected inclusion alone.
Persistent containment over I: ∀t∈I, b(t) ⊆ a(t). Sampled observations alone do not prove this universal statement without a justified interpolation or motion bound.
7. STRUCTURAL INVARIANTS
I01: Every assertion identifies container and contained roles.
I02: Both supports use compatible spatial domains and frames.
I03: Validity times overlap at the evaluated instant or interval.
I04: Exact inclusion requires empty residual support.
I05: Proper inclusion excludes equal supports.
I06: Interior inclusion excludes boundary contact.
I07: Exact nested inclusion is transitive in a common context.
I08: Equal supports do not imply entity identity.
I09: Unknown support is never silently treated as empty.
I10: Approximate predicates retain tolerance and measurement units.
I11: Functional membership does not establish geometric inclusion.
I12: Every derived assertion retains evidence, policy and version lineage.
8. RECURSIVE VALIDATION
G₀ = initial versioned entity graph. At iteration k, resolve new evidence, normalise frames, evaluate candidate relations and check I01–I12. Derive exact nested containment only from established compatible edges. Record supporting edge identifiers and dependencies. Commit accepted changes atomically to Gₖ₊₁; preserve previous versions. Retract or re-evaluate dependent conclusions when a premise changes.
Stop when no new admissible assertions or revisions remain, or when a declared iteration/resource limit is reached. Detect repeated graph states and report oscillation. Finite exact closure on a fixed finite set of entities terminates because only finitely many ordered pairs exist; evidence revision can invalidate this guarantee. A fixed point indicates procedural stability, not empirical truth.
9. EVIDENCE AND PROVENANCE
Store source identifier, observation and recording times, geometry representation, coordinate reference system, units, resolution, calibration, transformation history, validity period and inference rule. Distinguish observed containment from inferred containment. If admissible supports are uncertain, establish containment only when all admissible joint configurations satisfy the predicate; reject when none do; otherwise mark unknown or disputed according to evidence policy. Confidence scores are not probabilities unless calibrated. For physical clearance, use domain-specific tolerances and validated geometry rather than treating nominal overlap as a safety guarantee.
10. WORKED EXAMPLES
E01 Geometry: A=[0,10], B=[2,8]. Exact proper and interior containment hold in R.
E02 Boundary: A=[0,10], B=[0,3]. Proper inclusion holds; interior inclusion fails.
E03 Open region: A=(0,10), B={0}. Exact containment fails even though distance to A is zero.
E04 Engineering: a component fits within a declared cavity region only if its full occupied envelope is included. A bounding-box fit alone may not establish fit in an irregular cavity.
E05 Geography: a district polygon inside a municipality polygon establishes geometric inclusion at the relevant map version, not administrative authority without additional evidence.
E06 Computing: directory membership can be represented as symbolic containment; a symbolic link does not establish physical storage location.
E07 Dynamic system: a moving object observed inside a region at two times may leave and return between observations. Continuous containment requires additional evidence.
11. CROSS-ONTOLOGY INTEGRATION
Space Concept: ambient domain and topology.
Spatial Entity: identity and spatial support.
Region: set operations and spatial extent.
Boundary, Interior, Exterior: membership classification.
Position and Location: coordinate and reference alignment.
Distance and Proximity: tolerance and clearance, distinct from exact inclusion.
Adjacency: neighbouring relations; neither adjacency nor overlap alone implies containment.
Temporal Context and Temporal Persistence: validity and dynamic inclusion.
Transformation: support mapping and preservation conditions.
Entity Identity and Relationship: role identity, provenance and directed edges.
12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 A=[0,5], B=[1,2] → exact proper containment established.
T02 A=B=[0,5] → inclusive true; proper false.
T03 A=[0,5], B=[-1,2] → exact containment rejected.
T04 A=[0,5], B={0} → inclusive true; interior false.
T05 A=(0,5), B={0} → exact false; zero distance does not override.
T06 A⊇B⊇D in common context → A⊇D established by derivation.
T07 A⊇B and B⊇A with distinct IDs → equal supports; no identity merge.
T08 Missing B geometry → unknown, not vacuous inclusion.
T09 Incompatible coordinate frames without transformation → unknown or not_applicable.
T10 Coverage 1 with a missing measure-zero point → exact inclusion rejected.
T11 Conflicting geometry versions → retain evidence and flag dispute; no silent overwrite.
T12 Two inside observations without motion bounds → persistent containment unknown.
13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Containment Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/space-concepts/containment-ontology-2.html
Original proposed formalisation. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Live source, exact licence terms and published Flow Algebra grammar have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION