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

Method is_struct_like

crates/kernel/src/whnf.rs:1041–1048  ·  view source on GitHub ↗
(&mut self, id: &KId<M>)

Source from the content-addressed store, hash-verified

1039 /// because Ix relies on the no-delta layer for primitive/native reductions,
1040 /// but it preserves Lean's cheap projection policy for projected values.
1041 pub(super) fn whnf_no_delta_for_def_eq(
1042 &mut self,
1043 e: &KExpr<M>,
1044 ) -> Result<KExpr<M>, TcError<M>> {
1045 self.cheap_recursion_depth += 1;
1046 let result =
1047 self.whnf_no_delta_impl(e, WhnfFlags::DEF_EQ_CORE, NatSuccMode::Collapse);
1048 self.cheap_recursion_depth -= 1;
1049 result
1050 }
1051

Callers 1

try_struct_eta_iotaMethod · 0.80

Calls 2

try_get_constMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected