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

Method open_binder_anon

crates/kernel/src/tc.rs:555–563  ·  view source on GitHub ↗

Anonymous variant of [`Self::open_binder`] that uses `Name::anon()` / `BinderInfo::Default`. Convenient for kernel-internal walks (inductive validation, recursor synthesis) that don't carry user-visible binder metadata.

(
    &mut self,
    ty: KExpr<M>,
    body: &KExpr<M>,
  )

Source from the content-addressed store, hash-verified

553 ) -> (KExpr<M>, FVarId) {
554 let fv_id = self.fresh_fvar_id();
555 let fv = self.intern(KExpr::fvar(fv_id, name.clone()));
556 self.lctx.push(fv_id, LocalDecl::CDecl { name, bi, ty });
557 let body_open = instantiate_rev(&mut self.env.intern, body, &[fv]);
558 (body_open, fv_id)
559 }
560
561 /// Anonymous variant of [`Self::open_binder`] that uses
562 /// `Name::anon()` / `BinderInfo::Default`. Convenient for kernel-internal
563 /// walks (inductive validation, recursor synthesis) that don't carry
564 /// user-visible binder metadata.
565 pub fn open_binder_anon(
566 &mut self,

Callers 6

build_flat_blockMethod · 0.80
try_detect_nestedMethod · 0.80
check_field_universesMethod · 0.80
get_result_sort_levelMethod · 0.80

Calls 1

open_binderMethod · 0.80

Tested by

no test coverage detected