Skip to content

[Merged by Bors] - chore: remove tactics - #11365

Closed
adomani wants to merge 6 commits into
masterfrom
adomani/more_useless_tactics
Closed

adomani wants to merge 6 commits into
masterfrom
adomani/more_useless_tactics

Conversation

@adomani

@adomani adomani commented Mar 14, 2024 •

Copy link
Copy Markdown
Contributor

More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.


Open in Gitpod

Comment thread Mathlib/Data/Fin/SuccPred.lean Resolved
Comment thread Mathlib/Data/Finset/Lattice.lean Resolved
@adomani

adomani commented Mar 14, 2024

Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit beec5dc.
There were no significant changes against commit 3d9e3df.

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Mar 14, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Mar 14, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
@mathlib-bors

mathlib-bors Bot commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: remove tactics [Merged by Bors] - chore: remove tactics Mar 14, 2024
@mathlib-bors mathlib-bors Bot closed this Mar 14, 2024
@mathlib-bors
mathlib-bors Bot deleted the adomani/more_useless_tactics branch March 14, 2024 17:24
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
utensil pushed a commit that referenced this pull request Mar 26, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
xgenereux pushed a commit that referenced this pull request Apr 15, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
More tactics that are not used, found using the linter at #11308.

The PR consists of tactic removals, whitespace changes and replacing a porting note by an explanation.
mathlib-bors Bot pushed a commit that referenced this pull request Jun 30, 2024
The `unusedTactic` linter emits a warning if a tactic does nothing.

Previous PRs (see below) removed all the "unused tactics" that the linter flagged.

Here is an overview of this PR:
* the linter is defined in `Mathlib/Tactic/Linter/UnusedTactic.lean`;
* the file `Mathlib/GroupTheory/Perm/Cycle/Concrete.lean` contains the "only" `set_option` to opt out of the linter, since it defines notation that uses `decide` that the notation itself does not use;
* 17 test files that have surgically opted out of the linter;
* noise to import the new file, place it low in the import hierarchy and update `noshake`.


PRs removing some unused tactics:
* #11333
* #11351
* #11365
* #11379

[Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/pointless.20tactic.20linter)
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
The `unusedTactic` linter emits a warning if a tactic does nothing.

Previous PRs (see below) removed all the "unused tactics" that the linter flagged.

Here is an overview of this PR:
* the linter is defined in `Mathlib/Tactic/Linter/UnusedTactic.lean`;
* the file `Mathlib/GroupTheory/Perm/Cycle/Concrete.lean` contains the "only" `set_option` to opt out of the linter, since it defines notation that uses `decide` that the notation itself does not use;
* 17 test files that have surgically opted out of the linter;
* noise to import the new file, place it low in the import hierarchy and update `noshake`.


PRs removing some unused tactics:
* #11333
* #11351
* #11365
* #11379

[Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/pointless.20tactic.20linter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants