1 parent 9b0aba6 commit 1ecc058Copy full SHA for 1ecc058
1 file changed
src/Init/NotationExtra.lean
@@ -335,6 +335,15 @@ macro:50 e:term:51 " matches " p:sepBy1(term:51, " | ") : term =>
335
end Lean
336
337
/-- `{ a, b, c }` syntax, powered by the `Singleton` and `Insert` typeclasses. -/
338
+/-
339
+We use `withPosition` despite the parenthesized context because
340
+```
341
+{ aaa
342
+ bbb }
343
344
+otherwise could be either a two-field structure or a singleton set, which seems way too confusing
345
+even when the elaborator can disambiguate the two.
346
+-/
347
syntax "{" withPosition(term),+ "}" : term
348
349
macro_rules
0 commit comments