Extract the source-order `(head, args)` telescope from a Lean App spine. Used by tests to assert the reconstructed spine matches expectations.
(e: &LeanExpr)
| 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(); |