Skip to main content

Memory Block Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 09 November 2026
Audio Overview
SEMANTIC LIBRARY — MEMORY BLOCK ONTOLOGY
FLOW ALGEBRA v1.0 — CONSTRUCTED FORMAL MAPPING

CATEGORY: AI Core > Entity Graph > Computational Entities > Memory Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/memory-entities/memory-block-ontology.html
SOURCE PAGE: Memory Block Ontology; revised 02 August 2026.
AUTHORS (source attribution): Mark Anthony Higgins — Sky Recursive AI
MAPPING STATUS: Independently constructed from the ontology topic. The page's full embedded formal specification was not available in retrieved text. These rules are a proposed mapping, not a verbatim extraction.

1. PURPOSE
Represent a memory block as an addressable, bounded region of memory with allocation, access, contents, permissions and lifecycle state. Distinguish logical blocks from physical frames, cache lines and storage blocks.

2. ENTITY MODEL
MemoryBlock b = (id, base, length, address_space, owner, permissions, status, contents, version)
Entities: MemoryBlock, MemoryAddress, AddressSpace, MemoryRegion, Allocator, Process, MemoryController, Page, PhysicalFrame, AccessRequest, AccessResult.
Relations: locatedIn(b, address_space); ownedBy(b, owner); allocatedBy(b, allocator); containsAddress(b, a); mappedTo(b, physical_region); accessedBy(b, requester).

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current memory operation, address, requester and data.
R_t: block structure, mapping relations, ownership and access rules.
B_t: valid address range, allocation status, permissions, capacity and alignment boundaries.
K_t: known allocation metadata, content version, mapping and operation history.
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, K_t)
NOTE: The argmax is a reasoning-selection formalism; deterministic memory operations require explicit preconditions and do not depend on probabilistic selection.

4. INVARIANTS
INV-01: length(b) > 0.
INV-02: range(b) = [base(b), base(b) + length(b)); endpoint is exclusive.
INV-03: containsAddress(b,a) iff base(b) <= a < base(b)+length(b), within the same address space.
INV-04: A read or write is authorised only when the block is allocated/mapped as required and the requester holds the relevant permission.
INV-05: Address arithmetic must not overflow the address-space representation.
INV-06: Non-overlap applies to exclusive allocations in the same address space; shared or aliased mappings are explicit exceptions.
INV-07: Freeing a block invalidates subsequent use of its former allocation handle until reallocation.

5. FLOW ALGEBRA — ACCESS
F_read(b,a,q) = resolve(b,a) -> boundsCheck -> mappingCheck -> permissionCheck(q,READ) -> fetch -> result
F_write(b,a,q,v) = resolve(b,a) -> boundsCheck -> mappingCheck -> permissionCheck(q,WRITE) -> store(v) -> versionIncrement -> result
F_allocate(request) = validate(size,alignment) -> chooseRegion -> reserve -> initialiseMetadata -> returnHandle
F_release(b) = validateOwnership -> revokeAccess -> updateAllocator -> markFree
F_translate(a_virtual) = resolvePageMapping -> verifyPresent -> derivePhysicalAddress; otherwise pageFault

6. TRANSITION RULES
UNALLOCATED --allocate(valid_request)--> ALLOCATED
ALLOCATED --map(valid_mapping)--> MAPPED
MAPPED --read(authorised)--> MAPPED
MAPPED --write(authorised)--> MAPPED [contents/version updated]
MAPPED --unmap--> ALLOCATED
ALLOCATED --release--> FREE
Any state --invalid_access--> FAULT_RESULT (block state unchanged unless separately specified)

7. INFERENCE RULES
R1: withinRange(a,b) AND mapped(b) AND canRead(q,b) => eligibleRead(q,a).
R2: withinRange(a,b) AND mapped(b) AND canWrite(q,b) => eligibleWrite(q,a).
R3: NOT withinRange(a,b) => boundsFault(a,b).
R4: mapped(b) AND NOT authorised(q,b,operation) => protectionFault(q,b).
R5: released(b) AND accessViaStaleHandle(q,b) => useAfterFreeViolation.
R6: overlappingExclusive(b1,b2) AND sameAddressSpace(b1,b2) => allocationConflict.
R7: virtualAddress(a) AND mappingAbsent(a) => translationFault(a).

8. MINI RECURSION ENGINE
For each operation o in input queue:
  1. Observe the current block state and request.
  2. Expand candidate interpretations and relevant relations.
  3. Filter by bounds, mapping, ownership and permissions.
  4. Execute only a valid transition, or emit a typed fault.
  5. Update contents, metadata, version and audit evidence where applicable.
  6. Re-evaluate dependent operations until the queue is empty or a termination boundary is reached.
Termination: finite queue, bounded retries and explicit fault handling.

9. SEMANTIC MAPPINGS
MemoryBlock IS_A AddressableMemoryRegion.
MemoryBlock HAS_A BaseAddress, Length, AllocationState, PermissionSet.
MemoryBlock MAY_MAP_TO PhysicalFrame or PhysicalMemoryRegion.
MemoryBlock IS_NOT necessarily a CacheLine, Page or DiskBlock.

10. OPERATIONAL BOUNDARIES
Respect address-space isolation, hardware memory protection, alignment constraints, concurrent access synchronisation, cache coherence where applicable and lifetime rules. A successful permission check is not a guarantee of race freedom or data durability. Persistency requires a separate persistence protocol.

11. EXAMPLE EXECUTION
Given b.base=4096, b.length=256, b.status=MAPPED, READ allowed:
READ at address 4200 -> within [4096,4352), authorised -> success.
READ at address 4352 -> outside exclusive upper bound -> bounds fault.
WRITE at address 4200 without WRITE permission -> protection fault.

12. VALIDATION
Check address range, state transition legality, permissions, mapping validity, stale handles, overflow, aliasing, concurrency assumptions and fault classification.

13. CITATION AND PROVENANCE
Original ontology page: Memory Block Ontology, Kireth Research.
Source attribution: Mark Anthony Higgins — Sky Recursive AI.
Source date: 11 October 2025; revised 02 August 2026.
Mapping prepared: 09 November 2026.
Licence: Refer to the source's applicable published licence; no licence terms are inferred here.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ