Zulip Chat Archive

Stream: lean4

Topic: How does the attribute actually works?


Lim, Thing-han (Mar 12 2021 at 16:02):

I know that attribute such as, builtinTermElab, somehow registers a term elaboration rule.
But for example,
@[builtinTermElab «hole»] def elabHole : Syntax → Option Expr → TermElabM Expr

How does «hole» know what to use as an expected type (argument of type Option Expr) ?


Last updated: Dec 20 2023 at 11:08 UTC