-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathlakefile.lean
More file actions
40 lines (32 loc) · 1.16 KB
/
lakefile.lean
File metadata and controls
40 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Lake
open Lake DSL
require Poly from git "https://github.com/sinhp/Poly" @ "master"
require checkdecls from git "https://github.com/PatrickMassot/checkdecls.git"
meta if get_config? env = some "dev" then
require «doc-gen4» from git
"https://github.com/leanprover/doc-gen4" @ "v4.25.0-rc2"
package hottlean where
-- Settings applied to both builds and interactive editing
leanOptions := #[
⟨`pp.unicode.fun, true⟩, -- pretty-prints `fun a ↦ b`
⟨`autoImplicit, false⟩,
⟨`relaxedAutoImplicit, false⟩,
⟨`grind.warning, false⟩
]
/-- We must ensure the theory prelude gets built
so that theory environments can be created from its `.olean`.
But we should not import the theory prelude into any external Lean environment.
So it is built manually. -/
lean_lib Prelude where
roots := #[`HoTTLean.Prelude]
/-- A target for the natural model.
We cannot include this in `HoTTLean.lean`
because it exports the same names as `Unstructured`. -/
lean_lib NaturalModel where
roots := #[]
globs := #[.submodules `HoTTLean.Model.Natural]
@[default_target]
lean_lib HoTTLean where
needs := #[Prelude]
@[test_driver]
lean_lib test where