feat: add [grind homo] attribute - #14446
Merged
Merged
Conversation
This PR adds the attribute `[grind homo]`. This is just the first step. We are going to use it to implement the approach described at https://hackmd.io/Qd0nkWdzQImVe7TDGSAGbA It will replace the `ToInt` typeclasses used in `grind`. Andres Erbsen (@andres-erbsen) has already successfully tried and prototyped this approach at AeneasVerif/kraken#122
leodemoura
enabled auto-merge
July 18, 2026 17:44
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
pull Bot
pushed a commit
to DaviRain-Su/lean4
that referenced
this pull request
Jul 19, 2026
This PR adds the attribute `[grind homo_pred]`. This attribute is used for a separate mechanism which complements `[grind homo]`. It is not a rewrite set but an eager fact injector keyed by head symbol. Where `[grind homo]`` rules translate terms, `[grind homo_pred]` theorems generate new facts about terms the moment they enter the E-graph. See leanprover#14446
robsimmons
pushed a commit
that referenced
this pull request
Jul 29, 2026
This PR adds the attribute `[grind homo]`. This is just the first step. We are going to use it to implement the approach described at https://hackmd.io/Qd0nkWdzQImVe7TDGSAGbA It will replace the `ToInt` typeclasses used in `grind`. Andres Erbsen (@andres-erbsen) has already successfully tried and prototyped this approach at AeneasVerif/kraken#122
robsimmons
pushed a commit
that referenced
this pull request
Jul 29, 2026
This PR adds the attribute `[grind homo_pred]`. This attribute is used for a separate mechanism which complements `[grind homo]`. It is not a rewrite set but an eager fact injector keyed by head symbol. Where `[grind homo]`` rules translate terms, `[grind homo_pred]` theorems generate new facts about terms the moment they enter the E-graph. See #14446
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the attribute
[grind homo]. This is just the first step. We are going to use it to implement the approach described athttps://hackmd.io/Qd0nkWdzQImVe7TDGSAGbA
It will replace the
ToInttypeclasses used ingrind.Andres Erbsen (@andres-erbsen) has already successfully tried and prototyped this approach at
AeneasVerif/kraken#122