Suggestion: add illustration of trace.Meta.Tactic.simp.rewrite
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- documentation
Research direction
Start with chapter 9 of FPIL and review its discussion of simp and the <;> combinator alongside the suggested trace.Meta.Tactic.simp.rewrite example. Done means adding a clear, appropriately scoped introduction to tactic tracing and explaining enough of the trace output to help readers understand what simp is doing.
Written by the indexing model from the issue text.
Description
I just came across an illustration of trace.Meta.Tactic.simp.rewrite here: https://leanprover-community.github.io/extras/simp.html
I wanted to suggest including mention of this, and maybe other trace options like it, either in chapter 9 or in earlier or later discussions of simp (and maybe other tactics?).
Bacground: While reading FPIL chapter 9, I started to want to know more about what simp is doing. It does so much that its capabilities are necessarily mysterious, but that makes it difficult to know when it would be useful--without just throwing it into code and seeing what happens. The remark concerning <;> that it allowed tactics like simp to be applied to multiple goals simultaneously especially pushed me to want to know more about what simp was doing. If simp is doing different things with different goals, I'd like to have some idea of what it's doing. I recognize that the remarks about <;> might be intended only as flagging an advanced technique that a beginner might grow into 😄, but this still pushed me to want to get more insight into simp.
The trace output is a little bit hard to read at first, but I think I mostly understand it for the plusR_zero_left example using <;>, and It's very illuminating for me. If FPIL introduced tactic tracing, it could also clarify what's potentially confusing about the trace output.
- Dominant language
- Lean
- Stars
- 211
- Forks
- 83
- Avg merge
- 8m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/fp-lean
-
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
leanprover/fp-lean#316 ·
-
Typo
Difficulty 1/5 Under an hour Newbie friendliness 90/100
leanprover/fp-lean#311 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
leanprover/fp-lean#304 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
leanprover/fp-lean#303 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
leanprover/fp-lean#301 · 1 comment ·
All issues in leanprover/fp-lean
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
優先度たかし
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lean-ja/lean-by-example#2681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#79 ·
Maintainers usually reply within 1 day
-
v2
Difficulty 1/5 Under an hour Newbie friendliness 86/100
modelcontextprotocol/python-sdk#3978 · 2 comments ·
Maintainers usually reply within 1 day