-
Notifications
You must be signed in to change notification settings - Fork 5
/
serial_premises.lean
29 lines (23 loc) · 1.06 KB
/
serial_premises.lean
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
import LeanAide.Premises
import Lean.Meta
open Lean Meta LeanAide.Meta
set_option maxHeartbeats 10000000
set_option maxRecDepth 1000
set_option compiler.extract_closed false
def init : IO Unit := do
initSearchPath (← Lean.findSysroot) ([".lake/build/lib", ".lake/packages/mathlib/build/lib/", ".lake/packages/std/build/lib/", ".lake/packages/Qq/build/lib/", ".lake/packages/aesop/build/lib/", ".lake/packages/proofwidgets/build/lib" ])
def environment : IO Environment := do
importModules #[{module := `Mathlib},
{module:= `LeanAide.TheoremElab},
{module:= `LeanAide.VerboseDelabs},
{module:= `LeanAide.Premises},
{module := `Mathlib}] {}
def coreContext : Core.Context := {fileName := "", fileMap := {source:= "", positions := #[]}, maxHeartbeats := 100000000000, maxRecDepth := 1000000, openDecls := [Lean.OpenDecl.simple `LeanAide.Meta []]
}
def main (_: List String) : IO Unit := do
init
let env ← environment
let cursor ←
writePremisesCore.run' coreContext {env := env} |>.runToIO'
IO.println s!"Success: ran to {cursor}"
return ()