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

Function mk_lambda

crates/compile/src/compile/aux_gen/expr_utils.rs:447–449  ·  view source on GitHub ↗

Build a lambda chain by batch-abstracting all FVars in a single pass. Same semantics as `mk_forall` but produces `λ (x : T), body`.

(body: LeanExpr, binders: &[LocalDecl])

Source from the content-addressed store, hash-verified

445///
446/// Same semantics as `mk_forall` but produces `λ (x : T), body`.
447pub fn mk_lambda(body: LeanExpr, binders: &[LocalDecl]) -> LeanExpr {
448 mk_binder_chain(body, binders, BinderKind::Lambda)
449}
450
451/// Whether to build forall or lambda binders.
452#[derive(Clone, Copy)]

Callers 15

adapt_split_minorFunction · 0.85
synthesize_external_ihFunction · 0.85
build_below_valueFunction · 0.85
build_below_minorFunction · 0.85
build_rec_rulesFunction · 0.85
build_rule_ih_fvarFunction · 0.85
generate_cases_onFunction · 0.85
generate_rec_onFunction · 0.85
restoreMethod · 0.85
build_prop_breconFunction · 0.85

Calls 1

mk_binder_chainFunction · 0.85

Tested by 1