MCPcopy Create free account
hub / github.com/argumentcomputer/ix / unfold_const_value

Method unfold_const_value

crates/kernel/src/whnf.rs:828–843  ·  view source on GitHub ↗

Cache wrapper around `instantiate_univ_params` for delta unfolding. `head_expr` is the `Const(id, us)` head whose body we are unfolding; its content hash already encodes `(id, us)`, so we use it directly as the cache key. The cached value is the universe-instantiated body returned by `instantiate_univ_params(val, us)`. Soundness: `instantiate_univ_params` is a pure function of `(val, us)` — it o

(
    &mut self,
    head_expr: &KExpr<M>,
    val: &KExpr<M>,
    us: &[KUniv<M>],
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

delta_unfold_oneMethod · 0.80
try_delta_unfoldMethod · 0.80

Calls 7

hash_keyMethod · 0.80
record_unfold_hitMethod · 0.80
record_unfold_missMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected