Skip to content

fix: grind cast internalization order#13625

Merged
leodemoura merged 1 commit into
masterfrom
grind_not_internalized
May 3, 2026
Merged

fix: grind cast internalization order#13625
leodemoura merged 1 commit into
masterfrom
grind_not_internalized

Conversation

@leodemoura
Copy link
Copy Markdown
Member

This PR fixes a grind internal error triggered when cast (or Eq.rec, Eq.ndrec, Eq.recOn) is applied to an argument that has not yet been internalized. pushCastHEqs was emitting e ≍ a before internalizing the args of e, so the rhs of the heq had no enode and the debug sanity check tripped. The call now runs after the args are internalized.

This PR fixes a `grind` internal error triggered when `cast` (or `Eq.rec`,
`Eq.ndrec`, `Eq.recOn`) is applied to an argument that has not yet been
internalized. `pushCastHEqs` was emitting `e ≍ a` before internalizing
the args of `e`, so the `rhs` of the heq had no enode and the debug
sanity check tripped. The call now runs after the args are internalized.
@leodemoura leodemoura added the changelog-tactics User facing tactics label May 3, 2026
@leodemoura leodemoura enabled auto-merge May 3, 2026 16:20
@leodemoura leodemoura added this pull request to the merge queue May 3, 2026
Merged via the queue into master with commit ee8acc1 May 3, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-tactics User facing tactics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant