proves
rule_add_with(ex, func)
¶
Distribute max/min over add.
call(+, ~a..., call(max/min, ~b...), ~c...) =>
call(max/min, map(x -> call(+, a..., x, c...), b)...))
Source code in src/finch/finch_notation/proves.py
rule_all_literals(ex)
¶
All args are literals.
rule_associative_flatten(ex)
¶
Flatten nested associative ops.
Source code in src/finch/finch_notation/proves.py
rule_disjoint_flat_pair(ex, func1, func2)
¶
Handle two mins/maxes in max/min.
Source code in src/finch/finch_notation/proves.py
rule_disjoint_flat_single(ex, func1, func2)
¶
Remove min/max from max/min when disjoint.
Source code in src/finch/finch_notation/proves.py
rule_disjoint_nested(ex, func1, func2)
¶
Handle nested max/min in min/max.
Source code in src/finch/finch_notation/proves.py
rule_equal_same(ex)
¶
rule_ge(ex)
¶
rule_idempotent_unique(ex)
¶
Remove duplicates from idempotent op.