pub struct UorTime<H: HostTypes = DefaultHostTypes> { /* private fields */ }Expand description
v0.2.2 Phase A: foundation-internal deterministic two-clock value
carried by every Grounded<T> and Certified<C>. The two clocks are
landauer_nats (a LandauerBudget value backed by observable:LandauerCost)
and rewrite_steps (a u64 backed by derivation:stepCount on
derivation:TermMetrics). Each clock is monotonic within a pipeline
invocation, content-deterministic, ontology-grounded, and binds to a
physical wall-clock lower bound through established physics (Landauer’s
principle for nats; Margolus-Levitin for rewrite steps). Two clocks
because exactly two physical lower-bound theorems are grounded; adding
a third clock would require grounding a third physical theorem.
PartialOrd is component-wise: a < b iff every field of a is <=
the corresponding field of b and at least one is strictly <. Two
UorTime values from unrelated computations are genuinely incomparable,
so UorTime is PartialOrd but not Ord.
Implementations§
Source§impl<H: HostTypes> UorTime<H>
impl<H: HostTypes> UorTime<H>
Sourcepub const fn landauer_nats(&self) -> LandauerBudget<H>
pub const fn landauer_nats(&self) -> LandauerBudget<H>
Returns the Landauer budget consumed, in observable:Nats.
Maps to observable:LandauerCost.
Sourcepub const fn rewrite_steps(&self) -> u64
pub const fn rewrite_steps(&self) -> u64
Returns the total rewrite steps taken.
Maps to derivation:stepCount on derivation:TermMetrics.
Sourcepub fn min_wall_clock(&self, cal: &Calibration<H>) -> Nanos
pub fn min_wall_clock(&self, cal: &Calibration<H>) -> Nanos
Returns the provable minimum wall-clock duration that the
computation producing this witness could have taken under the
given calibration. Returns max(Landauer-bound, Margolus-Levitin-bound).
The Landauer bound is landauer_nats × k_B·T / thermal_power.
The Margolus-Levitin bound is π·ℏ·rewrite_steps / (2·characteristic_energy).
Pure arithmetic — no transcendentals, no state. Const-evaluable
where the UorTime value is known at compile time.