egraphs-good / eggcc

MIT License
52 stars 11 forks source link

[Utility] Write egglog code that checks for unique ids #246

Closed oflatt closed 9 months ago

oflatt commented 10 months ago

It's easy to forget a deepcopy or to have ids that don't match up with the surrounding context. We should add egglog rules that check that enforce the invariant that every context has a unique id. It's not clear how to do this yet- perhaps via an egglog table that maps ids to the body?