Skip to content

Commit 38ef3a0

Browse files
authored
Merge pull request #507 from Seasawher/auto-update-branch
2 parents 86fa982 + 53cce3d commit 38ef3a0

File tree

5 files changed

+1110
-163
lines changed

5 files changed

+1110
-163
lines changed

docs/attributes.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Attributes
22

3-
Mathlib version: `f8b9dcc5a5bc008436dc0a61b9a17be4d520d7ea`
3+
Mathlib version: `be9d1e42709f0c71f23bf54fdcea77c4058cd659`
44

55
## Std.Internal.tree_tac
66
simp theorems used by internal DTreeMap lemmas
@@ -694,6 +694,8 @@ type. This may prevent the elaborator from incorrectly inferring implicit argume
694694

695695
## eqns
696696
Overrides the equation lemmas for a declaration to the provided list
697+
Similar to `registerParametricAttribute` except that attributes do not
698+
have to be assigned in the same file as the declaration.
697699

698700
## export
699701
name to be used by code generators
@@ -734,6 +736,7 @@ have the module system enabled.
734736
735737
## expr_presenter
736738
Register an Expr presenter. It must have the type `ProofWidgets.ExprPresenter`.
739+
Register an Expr presenter. It must have the type `ProofWidgets.ExprPresenter`.
737740
738741
## ext
739742
Marks a theorem as an extensionality theorem
@@ -1158,6 +1161,10 @@ relations on its domain and range, and possibly with side conditions.
11581161

11591162
## multigoal
11601163
this tactic acts on multiple goals
1164+
The `multigoal` attribute keeps track of tactics that operate on multiple goals,
1165+
meaning that `tac` acts differently from `focus tac`. This is used by the
1166+
'unnecessary `<;>`' linter to prevent false positives where `tac <;> tac'` cannot
1167+
be replaced by `(tac; tac')` because the latter would expose `tac` to a different set of goals.
11611168

11621169
## mvcgen_simp
11631170
simp theorems internally used by `mvcgen`
@@ -1207,6 +1214,7 @@ Changes the inlining behavior. This attribute comes in several variants:
12071214

12081215
## nolint
12091216
Do not report this declaration in any of the tests of `#lint`
1217+
Defines the user attribute `nolint` for skipping `#lint`
12101218

12111219
## nontriviality
12121220
The `@[nontriviality]` simp set is used by the `nontriviality` tactic to automatically
@@ -1374,6 +1382,10 @@ special case in the `rfl` tactic.
13741382

13751383
## server_rpc_method_cancellable
13761384
Like `server_rpc_method`, but requests for this method can be cancelled. The method should check for that using `IO.checkCanceled`. Cancellable methods are invoked differently from JavaScript: see `callCancellable` in `cancellable.ts`.
1385+
Like `server_rpc_method`, but requests for this method can be cancelled.
1386+
The method should check for that using `IO.checkCanceled`.
1387+
Cancellable methods are invoked differently from JavaScript:
1388+
see `callCancellable` in `cancellable.ts`.
13771389

13781390
## seval
13791391
symbolic evaluator theorem
@@ -1472,15 +1484,23 @@ directly.
14721484

14731485
## to_additive_change_numeral
14741486
Auxiliary attribute for `to_additive` that stores functions that have numerals as argument.
1487+
Similar to `registerParametricAttribute` except that attributes do not
1488+
have to be assigned in the same file as the declaration.
14751489

14761490
## to_additive_dont_translate
14771491
Auxiliary attribute for `to_additive` stating that the operations on this type should not be translated.
1492+
Similar to `registerParametricAttribute` except that attributes do not
1493+
have to be assigned in the same file as the declaration.
14781494

14791495
## to_additive_ignore_args
14801496
Auxiliary attribute for `to_additive` stating that certain arguments are not additivized.
1497+
Similar to `registerParametricAttribute` except that attributes do not
1498+
have to be assigned in the same file as the declaration.
14811499

14821500
## to_additive_relevant_arg
14831501
Auxiliary attribute for `to_additive` stating which arguments are the types with a multiplicative structure.
1502+
Similar to `registerParametricAttribute` except that attributes do not
1503+
have to be assigned in the same file as the declaration.
14841504

14851505
## to_app
14861506

0 commit comments

Comments
 (0)