Skip to main content

normalize

Function normalize 

Source
pub fn normalize(ctx: &Context, term: &Term) -> Term
Expand description

Normalize a term to its normal form.

Repeatedly applies reduction rules until no more reductions are possible. This is a full normalization that reduces under binders.

This is the BEST-EFFORT face of normalize_checked: when the reduction cannot be finished it hands back how far it got, which is exactly the answer a caller cannot distinguish from success. It keeps this shape because normalize is re-exported from the crate root and callers across the workspace depend on the signature; every caller INSIDE the kernel that can carry an error should ask normalize_checked instead.