leanprover / leanprover/reference-manual

explain how simp works

Open
#288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc-request
Dominant language
Lean
Stars
129
Forks
67
Avg merge
1d 15h
Merged PRs (30d)
16

Description

What question should the reference manual answer?

In what order are simp-lemmas applied? Similarly: Why is my high-priority simp-rule not always applied before a low-priority simp rule?
What is the difference between @[simp] and @[simp↓]
What are discrimination trees and how are they used (also useful to reference in the type class inference chapter)?
What is the role of the simp discharger and what is the default discharger?
EDIT: What are simpprocs? How do they work? How to write one?

Additional context
Add any other context about the question here that will help us ensure that the documentation meets your needs.

Contributor guide

Open the contributing guide

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.

Research direction

No files or tests are named. Start by reviewing the existing reference manual coverage of simp, type class inference, discrimination trees, the simp discharger, and simpprocs, then identify where these questions belong. Done means the manual explains the listed concepts, ordering and priority behavior, and how to write simpprocs.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.