pub struct NestedRealm {
pub depth: u32,
pub realm_usri: String,
pub time_dilation: f64,
pub parent_context: u64,
}Expand description
A nested realm level (OCS §7).
Realities can be nested: a holodeck simulation inside a starship, a dream level inside a character, etc. Each level has its own coordinate system, clock, and paraconsistent isolation context.
Fields§
§depth: u32The nesting depth (0 = physical base, 1 = first nested, etc.)
realm_usri: StringThe USRI of this realm.
time_dilation: f64Time dilation factor ζ = dτ_nested / dτ_parent (OCS §7.1). ζ > 1 = accelerated (e.g. dream time), ζ < 1 = decelerated.
parent_context: u64The parent realm’s context hash (for isolation).
Implementations§
Source§impl NestedRealm
impl NestedRealm
Sourcepub fn new(
depth: u32,
realm_usri: &str,
time_dilation: f64,
parent_context: u64,
) -> Self
pub fn new( depth: u32, realm_usri: &str, time_dilation: f64, parent_context: u64, ) -> Self
Creates a new NestedRealm.
Sourcepub fn context_hash(&self) -> u64
pub fn context_hash(&self) -> u64
Compute the paraconsistent isolation context hash (OCS §7.1).
Uses non-commutative FNV-1a folding over (parent_context.to_le_bytes(), realm_usri.as_bytes(), depth.to_le_bytes()) so ordered paths [A, B]
and [B, A] produce distinct context hashes.
Sourcepub fn parent_to_nested_time(&self, parent_tau_secs: f64) -> f64
pub fn parent_to_nested_time(&self, parent_tau_secs: f64) -> f64
Convert parent proper time to nested proper time (OCS §7.1). τ_nested = τ_parent * ζ
Sourcepub fn nested_to_parent_time(&self, nested_tau_secs: f64) -> f64
pub fn nested_to_parent_time(&self, nested_tau_secs: f64) -> f64
Convert nested proper time to parent proper time.