Skip to content

feat: record [grind homo] source types - #14457

Merged
leodemoura merged 1 commit into
masterfrom
grind_homo_source_types
Jul 20, 2026
Merged

feat: record [grind homo] source types#14457
leodemoura merged 1 commit into
masterfrom
grind_homo_source_types

Conversation

@leodemoura

Copy link
Copy Markdown
Member

This PR records the homomorphism source types of a [grind homo] theorem set: when an =-injection rule (a rule translating Eq τ) is registered, the head constant of τ is added to a new environment extension, and rules whose source type is not headed by a constant are rejected. The source types identify the terms the grind homomorphism engine must track in the E-graph. The reset_grind_attrs% command clears the new extension.

🤖 Generated with Claude Code

This PR records the homomorphism source types of a `[grind homo]` theorem set: when an `=`-injection rule (a rule translating `Eq τ`) is registered, the head constant of `τ` is added to a new environment extension, and rules whose source type is not headed by a constant are rejected. The source types identify the terms the `grind` homomorphism engine must track in the E-graph. The `reset_grind_attrs%` command clears the new extension.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@leodemoura
leodemoura requested a review from kim-em as a code owner July 20, 2026 02:26
@leodemoura leodemoura added the changelog-tactics User facing tactics label Jul 20, 2026
@leodemoura
leodemoura enabled auto-merge July 20, 2026 02:27
@leodemoura
leodemoura added this pull request to the merge queue Jul 20, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 20, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 19893d5cceb2b7f974491e0d687c786fd68828fd --onto 25ba8c3d3bcb1dded7ff5a6f3b6044b0a7970198. You can force Mathlib CI using the force-mathlib-ci label. (2026-07-20 02:59:35)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 19893d5cceb2b7f974491e0d687c786fd68828fd --onto 49ff95727f98d43984726b26742d17a1ceea9dd5. You can force reference manual CI using the force-manual-ci label. (2026-07-20 02:59:36)

Merged via the queue into master with commit 5ea1d32 Jul 20, 2026
24 checks passed
robsimmons pushed a commit that referenced this pull request Jul 29, 2026
This PR records the homomorphism source types of a `[grind homo]`
theorem set: when an `=`-injection rule (a rule translating `Eq τ`) is
registered, the head constant of `τ` is added to a new environment
extension, and rules whose source type is not headed by a constant are
rejected. The source types identify the terms the `grind` homomorphism
engine must track in the E-graph. The `reset_grind_attrs%` command
clears the new extension.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-tactics User facing tactics toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants