Complexity
opulse.definition.complexity ¶
Structural complexity of a definition: longest call path and edge count.
For one operator application op(x, y):
max_path_depthL = max(L of arguments) + L(op)max_edge_countE = sum(E of arguments) + E(op)
Atoms contribute (0, 0). Across branches both numbers take the maximum,
because only one branch runs. Conditions are not counted. Primitive operators
carry their own (L, E) ((1, 2) for +, (1, 1) for unary -).