KIRETH SEMANTIC LIBRARY
VIRTUAL MEMORY ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Memory Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/memory-entities/virtual-memory-ontology-2.html
Source page authors: Mark Anthony Higgins — Sky Recursive AI
Source page revised: 02 August 2026
Mapping: Constructed ontology-specific Flow Algebra interpretation; the webpage's complete embedded formal specification was not accessible.
Date prepared: 09 November 2026
1. PURPOSE
Represent virtual memory as a controlled translation and protection mechanism mapping process virtual addresses to physical frames or backing-store locations, subject to access permissions, residency, resource limits and operating-system policy.
2. ENTITY SET
E = {Process, AddressSpace, VirtualAddress, VirtualPage, PageTable, PageTableEntry, PhysicalFrame, PhysicalMemory, MMU, TLB, BackingStore, PageFault, ProtectionFault, MemoryRegion, AccessRequest, Mapping, SwapManager, OSKernel, Permission, ReplacementPolicy}.
3. HST STATE
S_t = (I_t, R_t, B_t, K_t)
I_t = {request, process identity, virtual address, access type, mappings, frame availability, TLB state}.
R_t = {translation, protection, allocation, page-fault handling, eviction, write-back, invalidation}.
B_t = {address-space boundaries, permissions, hardware limits, memory quotas, isolation, security policy}.
K_t = {page-table state, mapping history, residency, dirty/accessed flags, fault and allocation records}.
4. FLOW ALGEBRA CORE
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t) and authorised(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, observation_t)
S_(t+1) = transition(S_t, x*_t)
These are conceptual selection/update relations, not claims about an actual CPU's probabilistic address-translation implementation.
5. ADDRESS TRANSLATION
For virtual address v and page size p:
VPN = floor(v / p)
offset = v mod p
PTE = page_table(process, VPN)
If PTE.present and permission(PTE, access):
physical_address = PTE.frame_number * p + offset
Else if not PTE.present:
emit PageFault(process, VPN, access)
Else:
emit ProtectionFault(process, VPN, access)
For architectures with multiple page sizes or nested translations, apply the corresponding configured translation stages.
6. PRIMARY RELATIONSHIPS
Process -> owns -> AddressSpace
AddressSpace -> contains -> VirtualPage
VirtualPage -> resolves_via -> PageTableEntry
PageTableEntry -> maps_to -> PhysicalFrame
MMU -> translates -> VirtualAddress
TLB -> caches -> AddressTranslation
PageFault -> handled_by -> OSKernel
VirtualPage -> may_be_backed_by -> BackingStore
MemoryRegion -> governed_by -> Permission
ReplacementPolicy -> selects -> EvictionCandidate
7. EXECUTION PATHWAYS
PATH A: ACCESS
Receive request -> identify address space -> consult TLB -> validate permissions -> translate -> access memory -> record outcome.
PATH B: TLB MISS
Walk page tables -> check mapping and permissions -> fill translation cache when permitted -> retry access.
PATH C: NON-RESIDENT PAGE
Trap to kernel -> validate region -> locate backing data or initialise a zero page -> obtain frame -> load/map page -> update page table -> invalidate/synchronise stale translations -> retry.
PATH D: PRESSURE
Detect shortage -> select eligible victim -> write back dirty data if required -> update mapping -> reclaim frame -> continue allocation.
PATH E: INVALID ACCESS
Detect unmapped or disallowed access -> reject/raise protection exception -> preserve process isolation.
8. INFERENCE RULES
R1: mapped(v,p) AND resident(v,p) AND allowed(v,p,a) => access_may_proceed(v,p,a).
R2: mapped(v,p) AND NOT resident(v,p) => page_fault_required(v,p).
R3: NOT allowed(v,p,a) => protection_fault(v,p,a).
R4: stale_translation(t) => invalidate_or_synchronise(t).
R5: dirty(frame) AND evict(frame) => write_back_required(frame) unless discarded by explicit policy.
R6: shared_mapping(p1,p2,f) => coherence_and_permission_rules_apply(f).
R7: copy_on_write(v) AND write_request(v) => allocate_private_copy_before_write(v), if resources permit.
R8: allocation_exceeds_limit(p) => deny_or_reclaim_under_policy(p).
9. MINI RECURSION ENGINE
resolve(request, depth):
if depth > configured_limit: return FAILURE_BOUNDARY
if permission_invalid(request): return PROTECTION_FAULT
if translation_resident(request): return ACCESS_RESULT
if recoverable_page_fault(request):
perform_bounded_fault_resolution(request)
return resolve(request, depth + 1)
return UNRESOLVED_FAULT
Termination requires bounded retries, fault classification and explicit error handling; successful resolution is not guaranteed.
10. INVARIANTS AND BOUNDARIES
- A process must not access frames outside its authorised mappings.
- Address translation must respect current page-table and permission state.
- A valid virtual address need not be resident in physical RAM.
- A page fault is not necessarily an error; an unrecoverable fault is.
- Page-table and TLB changes require architecture-appropriate ordering and synchronisation.
- Overcommit, swap, huge pages, memory-mapped files and nested virtualisation are policy/architecture dependent.
- No execution guarantee applies when hardware, backing storage, quota or permissions prevent completion.
11. EXAMPLE TRACE
Input: process P requests read at virtual address V.
Observe: TLB miss; page-table entry exists but page is non-resident.
Expand: page-table walk, fault handling, backing-store retrieval, frame allocation.
Filter: reject unauthorised or out-of-quota candidates.
Select: valid frame allocation and page-in under operating-system policy.
Update: mark resident, update page table, synchronise translations.
Retry: perform read if all steps succeed; otherwise report the relevant fault.
12. SEMANTIC EQUIVALENCES
virtual page ~= address-space page abstraction
physical frame ~= page-sized RAM allocation unit
page fault != always invalid memory access
TLB entry ~= cached translation, not the authoritative mapping
virtual memory != merely disk swap
13. CITATION AND PROVENANCE
Primary ontology page: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/memory-entities/virtual-memory-ontology-2.html
Original page attribution: Mark Anthony Higgins — Sky Recursive AI.
This document is a newly constructed Flow Algebra mapping of the topic and must not be mistaken for a verbatim extraction of the inaccessible embedded specification.
Download Code
Copy to Clipboard