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>,
)
| 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, |
no test coverage detected