theorem_proving_in_lean4 icon indicating copy to clipboard operation
theorem_proving_in_lean4 copied to clipboard

Anonymous constructor notation

Open ydewit opened this issue 3 years ago • 1 comments

It seems that there are two different notations for anonymous constructors:

instance : ToString Rules := { toString := fun rs => "TBD" }

and

instance : ToString Rules := ⟨ fun rs => "TBD" ⟩

The former is defined in the the Structures and Records > Objects and the latter somewhere in Quantifiers and Equality > The Existencial Quantifier.

(1) Shouldn't both anonymous constructors be documented together as two different ways to construct structures or inductive types?

(2) Should there be, at least, a link to this anonymous constructor documentation in the inductive types section too?

ydewit avatar Feb 18 '22 22:02 ydewit

I was going to file this bug also, would love to see the anonymous constructor notation also mentioned in structures and records.

lovettchris avatar Mar 10 '22 03:03 lovettchris