leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: lean4

Topic: exprToSyntax for levels


Eric Wieser (Aug 18 2024 at 13:39):

Is there a version of docs#Lean.Elab.Term.exprToSyntax that works for Level?

Kyle Miller (Aug 19 2024 at 17:56):

Not that I know of. The trick in exprToSyntax is to return ?m but first assign the expression to the metavariable m. There's no syntax for level metavariables. The pretty printer uses?u for level metavariables as a "quasi-syntax".


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll