Skip to content

fix: expose grind gadgets abstractFn and simpMatchDiscrsOnly#13177

Merged
Kha merged 1 commit intoleanprover:masterfrom
Kha:push-qprwnouyqwyr
Mar 29, 2026
Merged

fix: expose grind gadgets abstractFn and simpMatchDiscrsOnly#13177
Kha merged 1 commit intoleanprover:masterfrom
Kha:push-qprwnouyqwyr

Conversation

@Kha
Copy link
Copy Markdown
Member

@Kha Kha commented Mar 29, 2026

This PR adds @[expose] to Lean.Grind.abstractFn and
Lean.Grind.simpMatchDiscrsOnly so that the kernel can unfold them when
type-checking grind-produced proofs inside module blocks. Other
similar gadgets (nestedDecidable, PreMatchCond, alreadyNorm) were
already exposed; these two were simply missed.

Closes #13167

This PR adds `@[expose]` to `Lean.Grind.abstractFn` and
`Lean.Grind.simpMatchDiscrsOnly` so that the kernel can unfold them when
type-checking `grind`-produced proofs inside `module` blocks. Other
similar gadgets (`nestedDecidable`, `PreMatchCond`, `alreadyNorm`) were
already exposed; these two were simply missed.

Closes leanprover#13167
@Kha Kha added the changelog-tactics User facing tactics label Mar 29, 2026
@Kha Kha added this pull request to the merge queue Mar 29, 2026
Merged via the queue into leanprover:master with commit ccc7157 Mar 29, 2026
23 of 25 checks passed
@Kha Kha deleted the push-qprwnouyqwyr branch March 30, 2026 08:48
volodeyka pushed a commit that referenced this pull request Apr 16, 2026
)

This PR adds `@[expose]` to `Lean.Grind.abstractFn` and
`Lean.Grind.simpMatchDiscrsOnly` so that the kernel can unfold them when
type-checking `grind`-produced proofs inside `module` blocks. Other
similar gadgets (`nestedDecidable`, `PreMatchCond`, `alreadyNorm`) were
already exposed; these two were simply missed.

Closes #13167
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.

grind fails in a module because Lean.Grind.abstractFn is not exposed

2 participants