Zulip Chat Archive

Stream: mathlib4

Topic: naming conventions: LT.lt


Filippo A. E. Nuccio (Apr 23 2024 at 09:24):

In the naming convention page I find

-- follows rules 2 and 6
class LT (α : Type u) where
lt : α → α → Prop -- follows rule 4 and 6

and I do not understand: according to Rule 3, a function α → α → Prop should be named as terms in Prop, that is in UpperCamelCase by 2. Hence I would expect LT.LT (thorugh 6). What did I get wrong?

A. (Apr 23 2024 at 09:46):

This came up at least once before.

A. (Apr 23 2024 at 09:47):

It looks like I was supposed to make a PR to remove it from the examples list but never did.

Filippo A. E. Nuccio (Apr 23 2024 at 11:25):

Alistair Tucker said:

It looks like I was supposed to make a PR to remove it from the examples list but never did.

And are you going to? If not, I am happy to take care of it.

A. (Apr 23 2024 at 12:38):

Thanks, please do.

Filippo A. E. Nuccio (Apr 24 2024 at 01:50):

I have opened this PR with the modification, pinging @Jeremy Avigad for review.

A. (Apr 24 2024 at 08:11):

Did the naming conventions just get even more complicated?

Eric Wieser (Apr 24 2024 at 12:25):

I think this is an exception to the rule (it's LT.lt, Membership.mem, etc because core says so, not because that's the more general naming convention)


Last updated: May 02 2025 at 03:31 UTC