Skip to content

feat: add sanity checks to register_sym_simp#13040

Merged
leodemoura merged 1 commit intomasterfrom
lean-sym-interactive-7
Mar 22, 2026
Merged

feat: add sanity checks to register_sym_simp#13040
leodemoura merged 1 commit intomasterfrom
lean-sym-interactive-7

Conversation

@leodemoura
Copy link
Copy Markdown
Member

This PR adds validation to the register_sym_simp command:

  • Reject duplicate variant names
  • Validate pre/post syntax by elaborating them via elabSymSimproc
    in a minimal GrindTacticM context, catching unknown theorem names
    and unknown theorem set references at registration time

Adds withGrindTacticM helper for running GrindTacticM from CommandElabM,
and validateOptionSimprocSyntax for optional syntax validation.

This PR adds validation to the `register_sym_simp` command:
- reject duplicate variant names
- validate `pre`/`post` syntax by elaborating them via `elabSymSimproc`
  in a minimal `GrindTacticM` context, catching unknown theorem names
  and unknown theorem set references at registration time

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@leodemoura leodemoura added the changelog-tactics User facing tactics label Mar 22, 2026
@leodemoura leodemoura requested a review from kim-em as a code owner March 22, 2026 17:33
@leodemoura leodemoura enabled auto-merge March 22, 2026 17:34
@leodemoura leodemoura added this pull request to the merge queue Mar 22, 2026
Merged via the queue into master with commit 9a36789 Mar 22, 2026
21 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