kernel_rfl: closing a = b by the kernel's definitional unfolding #
kernel_rfl closes a goal a = b with Eq.refl a without asking the elaborator to check
a ≡ b; the kernel checks the definitional equality when the declaration is added (so nothing
is assumed: no axiom, no native_decide). It is meant for syntactic checks of large structured
programs with free parameters (Stmt.regsOK U (prog B n …) = true), which the kernel unfolds
quickly but on which the elaborator's lazy unfolding is very slow. If the equality does not
hold, the declaration is rejected by the kernel.
Close a = b by Eq.refl a, leaving the check a ≡ b to the kernel.
Equations
- kernelReflexivity = Lean.ParserDescr.node `kernelReflexivity 1024 (Lean.ParserDescr.nonReservedSymbol "kernel_rfl" false)