Skip to content

Commit 65bdc82

Browse files
Merge remote-tracking branch 'upstream/main' into mvcgen-tutorial
2 parents 5acb536 + 95ed476 commit 65bdc82

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Manual/Classes/InstanceDecls.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Instances for recursive inductive types are common, however.
122122
There is a standard idiom to work around this limitation: define a recursive function independently of the instance, and then refer to it in the instance definition.
123123
By convention, these recursive functions have the name of the corresponding method, but are defined in the type's namespace.
124124

125-
::: example "Instances are not recursive"
125+
:::example "Instances are not recursive"
126126
Given this definition of {lean}`NatTree`:
127127
```lean
128128
inductive NatTree where
@@ -153,7 +153,7 @@ def NatTree.beq : NatTree → NatTree → Bool
153153
| .leaf, .leaf =>
154154
true
155155
| .branch l1 v1 r1, .branch l2 v2 r2 =>
156-
l1 == l2 && v1 == v2 && r1 == r2
156+
NatTree.beq l1 l2 && v1 == v2 && NatTree.beq r1 r2
157157
| _, _ =>
158158
false
159159
```

Manual/Meta/Example.lean

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def getLeanBlockContents? : TSyntax `block → DocElabM (LeanBlockContent)
7676
| `(block|```$nameStx:ident $args*|$contents:str```) => do
7777
let name ← realizeGlobalConstNoOverload nameStx
7878
if name == ``Manual.imports then
79-
return {content := some contents.getString, shouldElab := false}
79+
return { content := some contents.getString, shouldElab := false }
8080
if name != ``Verso.Genre.Manual.InlineLean.lean then
81-
return {content := none, shouldElab := false}
81+
return { content := none, shouldElab := false }
8282
let args ← Verso.Doc.Elab.parseArgs args
8383
let args ← parseThe InlineLean.LeanBlockConfig args
8484
if !args.keep || args.error then
85-
return {content := none, shouldElab := true}
86-
pure <| {content := some contents.getString, shouldElab := true}
87-
| _ => pure {content := none, shouldElab := false}
85+
return { content := none, shouldElab := true }
86+
pure <| { content := some contents.getString, shouldElab := true }
87+
| _ => pure { content := none, shouldElab := false }
8888

8989
/--
9090
Elaborates all Lean blocks first, enabling local forward references

0 commit comments

Comments
 (0)