Skip to content

Challenge problem: improving proof performance via smart query compilation #851

@oflatt

Description

@oflatt

A tough benchmark that maybe @yihozhang can tackle or others!

I’ve attached two files from my new PR: #850. One is math-micro-term.egg and one is math-micro-proof.egg, math-microbenchmark with the term encoding vs full proof encoding. math-micro-term.egg is very quick for the rules the user wrote, comparable to normal egglog:

Ruleset : search 0.537s, merge 0.318s, rebuild 0.644s

On the other hand, adding proof lookups makes math-micro-proof.egg very slow for user rules:

Ruleset : search 30.739s, merge 1.004s, rebuild 3.386s

math-micro-proofs.txt

math-micro-terms.txt

You can ignore the timing for the rebuilding and unionfind rulesets for now, the main challenge is the user rules. Would be interested if you give an analysis of how we might speed up those though (I do have some ideas).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions