leanprover-community / mathlib

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

Zulip Chat Archive

Stream: lean4

Topic: elab optional syntax doesn't work


jthulhu (Jan 24 2026 at 09:35):

Consider the following MWE

elab "#glob " l:(ident "&")? : command => do
  dbg_trace "l = {l}"

#glob     -- l = none
#glob x & -- l = none

I'm not sure this is the expected behavior. I would expect, in the second case, that l is some syntax tree.


Last updated: Feb 28 2026 at 14:05 UTC

Theme Simple by wildflame © 2016 Powered by jekyll