-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathlakefile.lean
More file actions
39 lines (32 loc) · 1.15 KB
/
Copy pathlakefile.lean
File metadata and controls
39 lines (32 loc) · 1.15 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
import Lake
open Lake DSL
abbrev linter : Array LeanOption := #[
⟨`linter.hashCommand, true⟩,
⟨`linter.missingEnd, true⟩,
⟨`linter.cdot, true⟩,
⟨`linter.dollarSyntax, true⟩,
⟨`linter.style.lambdaSyntax, true⟩,
⟨`linter.longLine, true⟩,
⟨`linter.oldObtain, true,⟩,
⟨`linter.refine, true⟩,
⟨`linter.setOption, true⟩
]
/-- These options are passed as `leanOptions` to building mathlib, as well as the
`Archive` and `Counterexamples`. (`tests` omits the first two options.) -/
abbrev options := #[
⟨`pp.unicode.fun, true⟩, -- pretty-prints `fun a ↦ b`
⟨`autoImplicit, false⟩
] ++ -- options that are used in `lake build`
linter.map fun s ↦ { s with name := `weak ++ s.name }
package «SLT» where
-- add any package configuration options here
leanOptions := options
moreServerOptions := linter
require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "v4.32.0"
@[default_target]
lean_lib «SLT» where
globs := #[.submodules `SLT]
meta if get_config? env = some "dev" then
require «doc-gen4» from git
"https://github.com/leanprover/doc-gen4" @ "v4.32.0"