Skip to content

[Merged by Bors] - fix: make the allowed unused tactics extensible - #14557

Closed
adomani wants to merge 5 commits into
masterfrom
adomani/allow_unused_tactics
Closed

adomani wants to merge 5 commits into
masterfrom
adomani/allow_unused_tactics

Conversation

@adomani

@adomani adomani commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

This PR allows to change the tactics that the unused tactic linter ignores.

The main use-case is allowing done at the end of proofs, which is very useful for teaching purposes. See for instance this Zulip thread.


Open in Gitpod

@github-actions

github-actions Bot commented Jul 9, 2024 •

Copy link
Copy Markdown

PR summary 4d954560de

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

- allowed

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@grunweg grunweg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems well-motivated; thank you for doing this!
I have two wording suggestions on the docs. I'm seeing IO.Ref for the first time (and it's undocumented...), so somebody else should review this part carefully. The remainder looks good to me.

Comment thread test/UnusedTactic.lean Resolved
Comment thread Mathlib/Tactic/Linter/UnusedTactic.lean Resolved
@grunweg

grunweg commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

PS. I would call this a "feature" PR; this might be a matter of taste :-)

@adomani

adomani commented Jul 9, 2024

Copy link
Copy Markdown
Contributor Author

@eric-wieser, I know that you have some reservations on IO.Ref: this is just a heads-up that I am using one here! 😄

Comment thread Mathlib/Tactic/Linter/UnusedTactic.lean Resolved
@grunweg

grunweg commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

Thanks, looks good to me. Let's have a more qualified pair of eyes, perhaps Eric?
maintainer merge

@github-actions

github-actions Bot commented Jul 9, 2024

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 9, 2024
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@mathlib-bors

mathlib-bors Bot commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@jcommelin jcommelin added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 9, 2024
@github-actions github-actions Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jul 9, 2024
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 9, 2024
@adomani

adomani commented Jul 9, 2024

Copy link
Copy Markdown
Contributor Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Jul 9, 2024
This PR allows to change the tactics that the unused tactic linter ignores.

The main use-case is allowing `done` at the end of proofs, which is very useful for teaching purposes.  See for instance [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Disable.20.60linter.2EunusedTactic.60.20warning.20for.20.60done.60).
@mathlib-bors

mathlib-bors Bot commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title fix: make the allowed unused tactics extensible [Merged by Bors] - fix: make the allowed unused tactics extensible Jul 9, 2024
@mathlib-bors mathlib-bors Bot closed this Jul 9, 2024
@mathlib-bors
mathlib-bors Bot deleted the adomani/allow_unused_tactics branch July 9, 2024 12:42
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants