jacopy.normalize

jacopy.normalize(engine, expr, registry=None, *, rounds=10, max_steps=1024, passes=('product_rule', 'simplify'), inner_rounds=None, record=False, stop_when=None)

Drive expr to a fixpoint of engine + passes.

rounds — outer rounds; max_steps — rewrite steps per expansion pass; passes — names from PASSES or callables (expr, registry) -> expr applied after each expansion (flat loop) or after the inner fixpoint (nested loop); inner_rounds — when given, each outer round first iterates expansion + the FIRST pass to a fixpoint (at most inner_rounds times) and then applies the remaining passes (the strategies’ shape); record — keep the steps; stop_when — early stop (stopped_by="target").

Never raises for a budget; see require_normal_form().

Parameters:
Return type:

NormalForm