Skip to content

Commit 1519dae

Browse files
chore: update dependencies and fix warnings (#576)
1 parent 6445237 commit 1519dae

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Manual/Defs.lean

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ The headers and bodies of definitions are elaborated together.
489489
If the header is incompletely specified (e.g. a parameter's type or the codomain is missing), then the body may provide sufficient information for the elaborator to reconstruct the missing parts.
490490
However, {tech}[instance implicit] parameters must be specified in the header or as {tech}[section variables].
491491

492-
:::syntax Lean.Parser.Command.declaration alias:=Lean.Parser.Command.definition (title := "Definitions")
492+
:::syntax Lean.Parser.Command.declaration (alias := Lean.Parser.Command.definition) (title := "Definitions")
493493
Definitions that use `:=` associate the term on the right-hand side with the constant's name.
494494
The term is wrapped in a {keywordOf Lean.Parser.Term.fun}`fun` for each parameter, and the type is found by binding the parameters in a function type.
495495
Definitions with {keyword}`def` are {tech}[semireducible].
@@ -517,7 +517,7 @@ def $_ $_ where
517517
```
518518
:::
519519

520-
:::syntax Lean.Parser.Command.declaration alias:=Lean.Parser.Command.abbrev (title := "Abbreviations")
520+
:::syntax Lean.Parser.Command.declaration (alias := Lean.Parser.Command.abbrev) (title := "Abbreviations")
521521
Abbreviations are identical to definitions with {keyword}`def`, except they are {tech}[reducible].
522522

523523
```grammar
@@ -545,7 +545,7 @@ Unlike {tech}[axioms], opaque declarations can only be used for types that are i
545545
Also unlike axioms, the inhabitant of the type is used in compiled code.
546546
The {attr}`implemented_by` attribute can be used to instruct the compiler to emit a call to some other function as the compilation of an opaque constant.
547547

548-
:::syntax Lean.Parser.Command.declaration alias:=Lean.Parser.Command.opaque (title := "Opaque Constants")
548+
:::syntax Lean.Parser.Command.declaration (alias := Lean.Parser.Command.opaque) (title := "Opaque Constants")
549549
Opaque definitions with right-hand sides are elaborated like other definitions.
550550
This demonstrates that the type is inhabited; the inhabitant plays no further role.
551551
```grammar
@@ -579,7 +579,7 @@ However, because their use cases are quite different, they differ in many detail
579579
Theorems may be recursive, subject to the same conditions as {ref "recursive-definitions"}[recursive function definitions].
580580
However, it is more common to use tactics such as {tactic}`induction` or {tactic}`fun_induction` instead.
581581

582-
:::syntax Lean.Parser.Command.declaration alias:=Lean.Parser.Command.theorem (title := "Theorems")
582+
:::syntax Lean.Parser.Command.declaration (alias := Lean.Parser.Command.theorem) (title := "Theorems")
583583
The syntax of theorems is like that of definitions, except the codomain (that is, the theorem statement) in the signature is mandatory.
584584
```grammar
585585
$_:declModifiers
@@ -606,7 +606,7 @@ theorem $_ $_ where
606606
An {deftech}[example] is an anonymous definition that is elaborated and then discarded.
607607
Examples are useful for incremental testing during development and to make it easier to understand a file.
608608

609-
:::syntax Lean.Parser.Command.declaration alias:=Lean.Parser.Command.example (title := "Examples")
609+
:::syntax Lean.Parser.Command.declaration (alias := Lean.Parser.Command.example) (title := "Examples")
610610
```grammar
611611
$_:declModifiers
612612
example $_:optDeclSig := $_

Manual/Language/InductiveTypes/Structures.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ This updating does not require that the index expression be in bounds for the ar
275275
Updating structures may use array indices as well as projection names.
276276
Updates at indices that are out of bounds are ignored:
277277

278-
```lean name:=arrayUpdate
278+
```lean (name := arrayUpdate)
279279
structure AugmentedIntArray where
280280
array : Array Int
281281
augmentation : String := ""
@@ -492,7 +492,7 @@ def coords : Triple Nat := {fst := 17, snd := 2, thd := 95}
492492
```
493493

494494
Evaluating the first field index of {name}`coords` yields the underlying {name}`Pair`, rather than the contents of the field `fst`:
495-
```lean name:=coords1
495+
```lean (name := coords1)
496496
#eval coords.1
497497
```
498498
```leanOutput coords1

Manual/RecursiveDefs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ semireducible
490490
```grammar
491491
irreducible
492492
```
493-
These attributes can only be applied globally in the same file as the definition being modified, but they may be {keywordOf attrInst parser:=Lean.Parser.Term.attrKind}`local`ly applied anywhere.
493+
These attributes can only be applied globally in the same file as the definition being modified, but they may be {keywordOf attrInst (parser := Lean.Parser.Term.attrKind)}`local`ly applied anywhere.
494494
:::
495495

496496
## Reducibility and Tactics

Manual/Terms.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fun $x:ident : term => $t
357357
```
358358
:::
359359

360-
Function definitions defined with keywords such as {keywordOf Lean.Parser.Command.declaration parser:=Lean.Parser.Command.definition}`def` desugar to {keywordOf Lean.Parser.Term.fun}`fun`.
360+
Function definitions defined with keywords such as {keywordOf Lean.Parser.Command.declaration (parser := Lean.Parser.Command.definition)}`def` desugar to {keywordOf Lean.Parser.Term.fun}`fun`.
361361
Inductive type declarations, on the other hand, introduce new values with function types (constructors and type constructors) that cannot themselves be implemented using just {keywordOf Lean.Parser.Term.fun}`fun`.
362362

363363
:::syntax term (title := "Curried Functions")

lake-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "",
8-
"rev": "1a84b41c176a576e982676d6e1b0cb3df1786abb",
8+
"rev": "4863fb303c5c761a66c17417cd024b094e5b9399",
99
"name": "verso",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "main",
@@ -25,7 +25,7 @@
2525
"type": "git",
2626
"subDir": null,
2727
"scope": "",
28-
"rev": "597aa7f6d1d4bc22c5bdef797797497b10bea1f4",
28+
"rev": "0d0b1d3fae1157cc2df3480f7c0c98c33fc7bbe5",
2929
"name": "subverso",
3030
"manifestFile": "lake-manifest.json",
3131
"inputRev": "main",

0 commit comments

Comments
 (0)