grind sets

Open
#308 8 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
tooling

Research direction

Start by reading PR 11765 and the existing uses of scoped grind attributes, then compare them with the linked simp-set documentation. Done means defining the intended user-defined grind-set behavior and resolving how high-level sets such as LTS or Automata should avoid namespace-specific annotations.

Written by the indexing model from the issue text.

Description

https://github.com/leanprover/lean4/pull/11765 adds user-defined grind attributes, analogous to custom simp sets. I think this could have several advantages over the current practice of using scoped grind. Tying grind rules to namespaces can be problematic when they are deeply nested, causing us to make annotations with attribute away from their definitions or keep track of overly specific scopes. With grind sets, we could define high level sets of rules (LTS, Automata, etc.) without being concerned about these naming details.

Dominant language
Lean
Stars
862
Forks
242
Avg merge
1d 4h
Merged PRs (30d)
55

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/cslib

All issues in leanprover/cslib

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.