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

Function lean_telescope

crates/compile/src/decompile.rs:4675–4684  ·  view source on GitHub ↗

Extract the source-order `(head, args)` telescope from a Lean App spine. Used by tests to assert the reconstructed spine matches expectations.

(e: &LeanExpr)

Source from the content-addressed store, hash-verified

4673 // Insert .below constants via roundtrip_block.
4674 if needs_below {
4675 let below_members: Vec<&Name> = aux_members
4676 .iter()
4677 .filter(|(k, _)| *k == AuxKind::Below)
4678 .map(|(_, n)| n)
4679 .collect();
4680
4681 let all_below_names: Vec<Name> = below_consts
4682 .iter()
4683 .map(|bc| match bc {
4684 BelowConstant::Indc(i) => i.name.clone(),
4685 BelowConstant::Def(d) => d.name.clone(),
4686 })
4687 .collect();

Calls 3

as_dataMethod · 0.80
pushMethod · 0.80
cloneMethod · 0.45