Compare commits

...

1 Commits

Author SHA1 Message Date
Sebastian Graf
96771b2e82 doc: document that shareWithKernel needs the term to be internally shared 2026-02-19 13:52:42 +00:00

View File

@@ -350,6 +350,7 @@ def isTypeCorrect (e : Expr) : MetaM Bool := do
/--
Throw an exception if `e` cannot be type checked using the kernel.
This function is used for debugging purposes only.
Be sure to share common expressions in `e` before calling this function for good performance.
-/
def checkWithKernel (e : Expr) : MetaM Unit := do
let e instantiateExprMVars e