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
12 lines
320 B
Text
12 lines
320 B
Text
import Lean
|
|
|
|
open Lean Meta
|
|
|
|
-- In a new MCtx depth, metavariables should not be assignable by `isDefEq`.
|
|
|
|
run_meta do
|
|
let m ← mkFreshExprMVar (Expr.sort Level.one) MetavarKind.syntheticOpaque
|
|
withAssignableSyntheticOpaque do
|
|
withNewMCtxDepth do
|
|
let eq ← isDefEq m (.const ``Nat [])
|
|
Lean.logInfo m! "{eq}"
|