Skip to content

Commit c1e9800

Browse files
authored
Merge pull request #527 from Seasawher/auto-update-branch
2 parents b2be956 + 0d928e6 commit c1e9800

File tree

5 files changed

+47
-22
lines changed

5 files changed

+47
-22
lines changed

docs/attributes.md

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

3-
Mathlib version: `75f8adf6a6e95711bf49b848b590f2d123371a14`
3+
Mathlib version: `ef549b7b128a834178a5f25fbcdf75c3aa32deb7`
44

55
## Std.Internal.tree_tac
66
simp theorems used by internal DTreeMap lemmas
@@ -1490,11 +1490,6 @@ directly.
14901490
## to_additive
14911491
Transport multiplicative to additive
14921492

1493-
## to_additive_change_numeral
1494-
Auxiliary attribute for `to_additive` that stores functions that have numerals as argument.
1495-
Similar to `registerParametricAttribute` except that attributes do not
1496-
have to be assigned in the same file as the declaration.
1497-
14981493
## to_additive_dont_translate
14991494
Auxiliary attribute for `to_additive` stating that the operations on this type should not be translated.
15001495
Similar to `registerParametricAttribute` except that attributes do not
@@ -1513,9 +1508,32 @@ have to be assigned in the same file as the declaration.
15131508
## to_app
15141509

15151510

1511+
## to_dual
1512+
Transport to dual
1513+
1514+
## to_dual_dont_translate
1515+
Auxiliary attribute for `to_dual` stating that the operations on this type should not be translated.
1516+
Similar to `registerParametricAttribute` except that attributes do not
1517+
have to be assigned in the same file as the declaration.
1518+
1519+
## to_dual_ignore_args
1520+
Auxiliary attribute for `to_dual` stating that certain arguments are not dualized.
1521+
Similar to `registerParametricAttribute` except that attributes do not
1522+
have to be assigned in the same file as the declaration.
1523+
1524+
## to_dual_relevant_arg
1525+
Auxiliary attribute for `to_dual` stating which arguments are the types with a dual structure.
1526+
Similar to `registerParametricAttribute` except that attributes do not
1527+
have to be assigned in the same file as the declaration.
1528+
15161529
## trans
15171530
transitive relation
15181531

1532+
## translate_change_numeral
1533+
Auxiliary attribute for `to_additive` that stores functions that have numerals as argument.
1534+
Similar to `registerParametricAttribute` except that attributes do not
1535+
have to be assigned in the same file as the declaration.
1536+
15191537
## try_tactic
15201538
try_tactic elaborator
15211539

docs/commands.md

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

3-
Mathlib version: `75f8adf6a6e95711bf49b848b590f2d123371a14`
3+
Mathlib version: `ef549b7b128a834178a5f25fbcdf75c3aa32deb7`
44

55
## \#adaptation_note
66
Defined in: `adaptationNoteCmd`
@@ -1887,6 +1887,13 @@ Some common uses:
18871887
initialize_simps_projections Equiv (toFun → apply, invFun → symm_apply)
18881888
```
18891889

1890+
## insert_to_additive_translation
1891+
Defined in: `Mathlib.Tactic.ToAdditive.commandInsert_to_additive_translation__`
1892+
1893+
`insert_to_additive_translation mulName addName` inserts the translation `mulName ↦ addName`
1894+
into the `to_additive` dictionary. This is useful for translating namespaces that don't (yet)
1895+
have a corresponding translated declaration.
1896+
18901897
## irreducible_def
18911898
Defined in: `Lean.Elab.Command.command_Irreducible_def____`
18921899

docs/options.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Options
22

3-
Mathlib version: `75f8adf6a6e95711bf49b848b590f2d123371a14`
3+
Mathlib version: `ef549b7b128a834178a5f25fbcdf75c3aa32deb7`
44

55
## Elab.async
66
type: `Bool`
@@ -744,7 +744,7 @@ type: `Bool`
744744

745745
default: `true`
746746

747-
Linter, mostly used by `@[to_additive]`, that checks that the source declaration doesn't have certain attributes
747+
Linter, mostly used by translate attributes, that checks that the source declaration doesn't have certain attributes
748748

749749
## linter.flexible
750750
type: `Bool`
@@ -1194,34 +1194,34 @@ default: `false`
11941194

11951195

11961196

1197-
## linter.toAdditiveExisting
1197+
## linter.toAdditiveRelevantArg
11981198
type: `Bool`
11991199

12001200
default: `true`
12011201

1202-
Linter used by `@[to_additive]` that checks whether the user correctly specified that
1203-
the additive declaration already exists
1202+
Linter to check that the `relevant_arg` attribute is not given manually.
12041203

1205-
## linter.toAdditiveGenerateName
1204+
## linter.trailingWhitespace
12061205
type: `Bool`
12071206

12081207
default: `true`
12091208

1210-
Linter used by `@[to_additive]` that checks if `@[to_additive]` automatically generates the user-given name
12111209

1212-
## linter.toAdditiveRelevantArg
1210+
1211+
## linter.translateExisting
12131212
type: `Bool`
12141213

12151214
default: `true`
12161215

1217-
Linter to check that the `relevant_arg` attribute is not given manually.
1216+
Linter used by translate attributes that checks whether the user correctly specified
1217+
that the translated declaration already exists
12181218

1219-
## linter.trailingWhitespace
1219+
## linter.translateGenerateName
12201220
type: `Bool`
12211221

12221222
default: `true`
12231223

1224-
1224+
Linter used by translate attributes that checks if the given declaration name is equal to the automatically generated name
12251225

12261226
## linter.unnecessarySeqFocus
12271227
type: `Bool`
@@ -5365,14 +5365,14 @@ default: `false`
53655365

53665366
enable/disable tracing for the given module and submodules
53675367

5368-
## trace.to_additive
5368+
## trace.translate
53695369
type: `Bool`
53705370

53715371
default: `false`
53725372

53735373
enable/disable tracing for the given module and submodules
53745374

5375-
## trace.to_additive_detail
5375+
## trace.translate_detail
53765376
type: `Bool`
53775377

53785378
default: `false`

docs/tactics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tactics
22

3-
Mathlib version: `75f8adf6a6e95711bf49b848b590f2d123371a14`
3+
Mathlib version: `ef549b7b128a834178a5f25fbcdf75c3aa32deb7`
44

55
## \#adaptation_note
66
Defined in: `«tactic#adaptation_note_»`

lake-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "",
8-
"rev": "75f8adf6a6e95711bf49b848b590f2d123371a14",
8+
"rev": "ef549b7b128a834178a5f25fbcdf75c3aa32deb7",
99
"name": "mathlib",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "master",

0 commit comments

Comments
 (0)