SymmetryBook icon indicating copy to clipboard operation
SymmetryBook copied to clipboard

Notation for constructors

Open UlrikBuchholtz opened this issue 4 years ago • 4 comments

Currently, many constructors, inl, inr, refl, are written with the argument as a subscript, but we also type them as functions. Perhaps it would be better to just use function application notation?

UlrikBuchholtz avatar Jul 01 '21 15:07 UlrikBuchholtz

Perhaps we could do it this way: use the notation foo_x only for families of elements in a family of types, and use the notation foo(x) only for function application. Section 2.2, where families are introduced. We could easily edit that to adhere to such a standard, and that would remove some notation ambiguity that will be irksome for the student.

DanGrayson avatar Jul 01 '21 15:07 DanGrayson

As we discussed, this could become problematic if the subscript is a complicated expression, or is itself a family of elements. Sometimes, computations will happen in the subscript. I'm in favour of allowing both in all cases, dependent and non-dependent. For example, a sequence in R could be denoted as a function s : N -> R and also as a family of elements s_n for any n:N. In any particular case one can then make the best choice. In some cases the choices can be equally good.

marcbezem avatar Jul 01 '21 16:07 marcbezem

Yes, it can be a matter of taste whether you use a family or a function. Similarly, it can be a matter of taste whether you want subscripts or function applications.

DanGrayson avatar Jul 01 '21 17:07 DanGrayson

Agree. We don't need to be totally consistent at just this point.

Bjorn

On 1 Jul 2021, at 19:22, Daniel R. Grayson @.***> wrote:

Yes, it can be a matter of taste whether you use a family or a function. Similarly, it can be a matter of taste whether you want subscripts or function applications.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

bidundas avatar Jul 01 '21 20:07 bidundas