Repository navigation
Conversation
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 21d20b4a2cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
✅ PR Title Formatted CorrectlyThe title of this PR has been updated to match our commit style conventions. |
isIgnoreTacticKind and addIgnoreTacticKind as publicisIgnoreTacticKind and addIgnoreTacticKind as public
joneugster
left a comment
There was a problem hiding this comment.
Thank you for the PR!
I've been a bit confused at first, so I've added an optional suggestion for a comment about the thing I've been confused about.
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by joneugster. |
Co-authored-by: Jon Eugster <[email protected]>
|
This pull request has conflicts, please merge |
|
I'm removing this from the I think one of the reasons that this has been stalled is that it is not clear to most people what is the motivation for the changes. Could you please fix the conflict and add an explanation for why we should make these changes. Thanks! |
|
Sorry for the late reply @ocfnash I ran into the need for this change while doing some metaprogramming where I wanted a flexible way to dynamically collect tactics: syntax (name := registerTacStx) "registerTac" tactic : command
meta initialize tactics : SimplePersistentEnvExtension (TSyntax `tactic) (Array (TSyntax `tactic))
← registerSimplePersistentEnvExtension {
addEntryFn := Array.push
addImportedFn := Array.foldl (init := #[]) (· ++ ·)
}
@[command_elab registerTacStx]
meta def registerTacStxImp : CommandElab
| `(command| registerTac $tac) =>
modifyEnv fun env ↦
tactics.addEntry env tac
| _ => throwUnsupportedSyntaxUnfortunately, the UnusedTactic linter also flags uses of registerTac simp
-- warning: Unused tactic linter: `simp` does nothingIf the above definitions were public, I could suppress these warnings cleanly with: initialize Mathlib.Linter.UnusedTactic.addIgnoreTacticKind ``registerTacStxI don't see a reason why this should be forbidden. In particular, That linter appears to be more or less a copy of the corresponding mathlib linter, so it seems reasonable to allow the same mechanism in mathlib as well. |
|
Thanks! bors merge |
…gnoreTacticKind` as public (#41993) Marks `isIgnoreTacticKind` and `addIgnoreTacticKind` in the `unusedTactic` linter as `public` definitions. Co-authored-by: Oliver Enes <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
isIgnoreTacticKind and addIgnoreTacticKind as publicisIgnoreTacticKind and addIgnoreTacticKind as public
* origin/master: (417 commits) feat(CategoryTheory/Presentable): more basic API for κ-filtered categories (leanprover-community#41184) feat(Tactic/Linter/UnusedTactic): mark `isIgnoreTacticKind` and `addIgnoreTacticKind` as public (leanprover-community#41993) doc: sync area READMEs with the directory tree (leanprover-community#42224) feat(CategoryTheory/Presentable): new constructor for `IsCardinalFilteredGenerator` (leanprover-community#41183) feat(Data/Finset): `insert a (s.erase a) = insert a s` (leanprover-community#40775) feat(CategoryTheory/Limits): morphisms between filtered limits are initially level-wise (leanprover-community#41009) chore: fix more linter warnings encountered by `scripts/rm_set_option.py` (leanprover-community#42659) chore(Algebra/Module/Submodule/Pointwise): remove `@[simp]` (leanprover-community#42643) feat(Algebra/QuadraticAlgebra): change of generator (leanprover-community#42209) chore(Condensed): reduce imports (leanprover-community#42022) chore: remove @[expose] from def-free public sections (leanprover-community#39388) feat: make `TFAE.out` 1-indexed (leanprover-community#42663) feat(Topology/Order): convergence of suprema and infima (leanprover-community#40578) feat: composition of Fredholm operators (leanprover-community#41601) chore: remove unused open declarations (leanprover-community#42235) chore(Algebra/Order/GroupWithZero/Canonical): remove unnecessary typeclass assumptions (leanprover-community#42539) chore(Algebra/Homology): make `HomologicalComplex.eval` `implicit_reducible` (leanprover-community#42648) chore: update Mathlib dependencies 2026-08-11 (leanprover-community#42651) chore: improve `Set` / `Finset` congruence API (leanprover-community#42640) feat(Geometry/Convex): a topology on StdSimplex (leanprover-community#42131) ... # Conflicts: # Mathlib/Tactic/Linter/DirectoryDependency.lean
…gnoreTacticKind` as public (leanprover-community#41993) Marks `isIgnoreTacticKind` and `addIgnoreTacticKind` in the `unusedTactic` linter as `public` definitions. Co-authored-by: Oliver Enes <[email protected]>
Marks
isIgnoreTacticKindandaddIgnoreTacticKindin theunusedTacticlinter aspublicdefinitions.