Zulip Chat Archive

Stream: maths

Topic: coe_add vs add_coe


Nicolò Cavalleri (Jun 03 2021 at 23:30):

What is the rule to decide if to name a lemma coe_add or add_coe?

Eric Wieser (Jun 04 2021 at 07:11):

The naming guide says lemmas about foo (bar x y) = ... should be called foo_bar

Eric Wieser (Jun 04 2021 at 07:13):

So coe_add would by that scheme be coe (a + b) = ... while add_coe would be coe a + coe b = ...

Eric Wieser (Jun 04 2021 at 07:13):

#naming

Eric Wieser (Jun 04 2021 at 07:15):

Although now that I look, I can't find that rule there...

Mario Carneiro (Jun 04 2021 at 08:55):

I think the latter would be called coe_add_coe

Mario Carneiro (Jun 04 2021 at 08:55):

add_coe would be something like a + coe b = ...

Eric Rodriguez (Jun 04 2021 at 09:04):

but then what would coe a + b be? I would've assumed coe_add

Eric Wieser (Jun 04 2021 at 09:06):

Right, the naming is ambiguous. This comes up for (-a) * b = ... vs a * -b = ... vs -(a * b) = ..., although the lemma names we choose for those are an awful mouthful

Kevin Buzzard (Jun 04 2021 at 10:28):

I bet coe a + b is much rarer in practice than examples where a and b have the same type


Last updated: Dec 20 2023 at 11:08 UTC