This PR deprecates `levelZero` in favor of `Level.zero` and `levelOne`
in favor of the new `Level.one`, and updates all usages throughout the
codebase. The `levelZero` alias was previously required for computed
field `data` to work, but this is no longer needed.
🤖 Prepared with Claude Code
14 lines
463 B
Text
14 lines
463 B
Text
import Lean
|
|
|
|
open Lean
|
|
|
|
unsafe def tst : IO Unit :=
|
|
withImportModules #[{module := `Init.Data.Array}] {} fun env =>
|
|
match env.find? `Array.foldl with
|
|
| some info => do
|
|
IO.println (info.instantiateTypeLevelParams [Level.zero, Level.zero])
|
|
IO.println (info.instantiateValueLevelParams! [Level.zero, Level.zero])
|
|
IO.println (info.instantiateValueLevelParams! [Level.zero])
|
|
| none => IO.println "Array.foldl not found"
|
|
|
|
#eval tst
|