leanprover-community / mathlib

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

Zulip Chat Archive

Stream: general

Topic: parentheses optional in `structure`


Eric Wieser (May 07 2021 at 08:48):

I was surprised to find this is legal:

structure foo α (x : α) :=
(y : α)

structure bar x > 0 :=
(hlt : x < 10)

Is it an accident that this syntax is allowed for structure but seemingly forbidden for inductive?


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll