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

Function lean_expr_to_zexpr_with_kenv

crates/kernel/src/ingress.rs:2211–2230  ·  view source on GitHub ↗

Cached variant that takes a full `KEnv` reference instead of just `InternTable`. Uses the KEnv's `ingress_cache` to avoid re-converting shared LeanExpr subtrees.

(
  expr: &LeanExpr,
  param_names: &[Name],
  kenv: &mut KEnv<Meta>,
  n2a: Option<&DashMap<Name, Address>>,
  aux_n2a: Option<&DashMap<Name, Address>>,
)

Source from the content-addressed store, hash-verified

2209 &block_constant.univs,
2210 block_id.clone(),
2211 intern,
2212 stats,
2213 None,
2214 )?);
2215 },
2216 IxonMutConst::Defn(def) => {
2217 results.extend(ingress_defn(
2218 def,
2219 self_id,
2220 member_meta,
2221 ixon_env,
2222 names,
2223 name_to_addr,
2224 &block_constant.sharing,
2225 &block_constant.refs,
2226 &block_constant.univs,
2227 block_id.clone(),
2228 intern,
2229 stats,
2230 None,
2231 )?);
2232 },
2233 }

Calls 2

param_names_hashFunction · 0.85