lean4-htt/tests/lean/run/instuniv.lean
Leonardo de Moura e54a207986 refactor: provide Options to lean_eval_const
add `ImportM` monad for `addImportedFn`

cc @Kha
2020-10-19 10:21:38 -07:00

14 lines
415 B
Text

import Lean
new_frontend
open Lean
unsafe def tst : IO Unit :=
withImportModules [{module := `Init.Data.Array}] {} 0 fun env =>
match env.find? `Array.foldl with
| some info => do
IO.println (info.instantiateTypeLevelParams [levelZero, levelZero]);
IO.println (info.instantiateValueLevelParams [levelZero, levelZero]);
pure ()
| none => IO.println ("Array.foldl not found")
#eval tst