Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- alpha_
similar - Check if two expressions differ only in binder names (alpha-equivalent at the surface level, without substitution).
- bounded_
conversion - Bounded depth search for convertibility.
- check_
conversion - Perform conversion checking with diagnostics.
- contains_
subterm - Check if an expression structurally “contains” another as a subterm.
- conversion_
diff - Collect pairs of subexpressions that differ between two expressions.
- convertibility_
score - Compute a heuristic convertibility score between 0.0 and 1.0.
- count_
free_ vars - Count the number of distinct free variables in an expression.
- def_
eq_ with_ mode - Check if two expressions are definitionally equal with a specified transparency mode.
- expr_
depth - Depth of an expression tree.
- expr_
size - Count total number of nodes in an expression tree.
- exprs_
equal - Check if two expressions are syntactically equal (alias for syntactic_eq).
- is_
atomic - Check if an expression is in “atomic” form (no reducible subexpressions).
- is_
beta_ normal - Check whether an expression is in normal form: no beta-redexes at top level.
- is_
eta_ equal - Check eta-equality: f and lambda x. f x are eta-equal.
- is_leaf
- Check if an expression has no subterms at all (is completely atomic).
- is_
transparency_ neutral - Check whether an expression is transparency-neutral.
- levels_
def_ eq - Check if two level expressions are definitionally equivalent.
- same_
head - Check whether two expressions have the same outermost constructor/head.
- structural_
distance - Compute the “edit distance” between two expressions as a rough measure of how different they are structurally.
- syntactic_
eq - Fast syntactic equality check without reduction.