Skip to content

Commit 9fc47ec

Browse files
committed
doc: Add comment about import
1 parent dd288e6 commit 9fc47ec

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

doc/setup.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ server = Server()
2929

3030
The server created from `Server()` is sufficient for basic theorem proving tasks
3131
reliant on Lean's `Init` library. Some users may find this insufficient and want
32-
to use non-builtin libraries such as Aesop or Mathlib4.
32+
to use non-builtin libraries such as Aesop or Mathlib4. In this case, feed in a
33+
list of module names via the `imports` parameter e.g. `imports=["Mathlib"]`. Due
34+
to inherent restrictions in Lean, importing a module that has not been imported
35+
before after the server has already started is not allowed and will trigger
36+
initializer exceptions. It may be possible to circumvent this if Lean relaxes
37+
this constraint.
3338

3439
To use external Lean dependencies such as
3540
[Mathlib4](https://github.com/leanprover-community/mathlib4), Pantograph relies

0 commit comments

Comments
 (0)