leanprover-community / leanprover-community/tutorials4
Remove redundant `have` statement for `f (f x) = x`
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 63
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Proposed change:
- Remove the redundant line 276
have : f (f x) = x := by rw [h']inTutorials/Solutions/03ForallOr.lean
https://github.com/leanprover-community/tutorials4/blob/9ae5914918bc011be3fdaae125c23ce987e94191/Tutorials/Solutions/03ForallOr.lean#L276
The result of thishaveis not used in subsequent code; instead, the same fact is obtained later viarw [h'] at f1andrw [h' x] at f1.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Open Tutorials/Solutions/03ForallOr.lean around line 276 and inspect the have : f (f x) = x := by rw [h'] statement and the following uses of f1. Remove the unused statement, then verify that the later rewrites still provide the needed fact and that the tutorial file continues to compile.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Refactor
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100