[Merged by Bors] - feat(Tactic/Linter/UnusedTactic): also lint inside conv => - #42416
[Merged by Bors] - feat(Tactic/Linter/UnusedTactic): also lint inside conv =>#42416JovanGerb wants to merge 6 commits into
conv =>#42416Conversation
PR summary fdd74a788aImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
grunweg
left a comment
There was a problem hiding this comment.
Thanks for doing this. This seems reasonable - I just have three minor comments.
grunweg
left a comment
There was a problem hiding this comment.
Thanks for doing this! I'd like another pair of eyes in the changes to Fubini.lean; the linter changes LGTM.
maintainer merge?
|
Oh, and can you update the PR description to mention the wording tweaks also? |
|
🚀 Pull request has been placed on the maintainer queue by grunweg. |
| (colimit.ι _ j ≫ colimit.ι (F.flip ⋙ colim) k : _ ⟶ colimit (F.flip ⋙ colim)) := by | ||
| dsimp [colimitFlipCompColimIsoColimitCompColim] | ||
| slice_lhs 1 3 => simp only | ||
| conv_lhs => slice 1 3 |
There was a problem hiding this comment.
This can also be written as slice_lhs 1 3 => skip. I'm not sure which is preferred.
|
Thanks! A very minor omission is a test for the guardHyp/guardTarget behaviour. bors d+ |
|
✌️ JovanGerb can now approve this pull request until 2026-08-21 07:25 UTC (in 2 weeks). To approve and merge, reply with
|
|
The test file is very small - most things aren't tested. Should I add tests for all the exceptions? |
|
Not all necessarily, but it seems like the guards are excepted via a slightly different route than, say, Thanks! |
|
It looks like the guards are excepted via a different mechanism than the bors r+ |
This PR extends the unused tactic linter to also lint inside `conv =>`/`conv_lhs =>`/`slice_lhs i j =>`. It is sometimes neccessary to use the `skip` conv mode tactic to skip goals you don't want to conv into, so I added the conv mode skip to the list of exception tactics. I also added a test, and did some general cleanup: - The warning message of the linter is improved. - The hard-coded exception that `#show_kind` had, is replaced with just adding it to the list of exceptions. After this, the unused tactic linter will (almost entirely) subsume the unreachable tactic linter. So, we will be able to turn it off, which will gain us quite a bit of performance.
|
Pull request successfully merged into master. Build succeeded: |
conv =>conv =>
This PR extends the unused tactic linter to also lint inside
conv =>/conv_lhs =>/slice_lhs i j =>. It is sometimes neccessary to use theskipconv mode tactic to skip goals you don't want to conv into, so I added the conv mode skip to the list of exception tactics.I also added a test, and did some general cleanup:
#show_kindhad, is replaced with just adding it to the list of exceptions.After this, the unused tactic linter will (almost entirely) subsume the unreachable tactic linter. So, we will be able to turn it off, which will gain us quite a bit of performance.