Zulip Chat Archive

Stream: mathlib4

Topic: Naming of `finprod_mem` lemmas


Christian Merten (May 09 2025 at 12:33):

On PR #23849, @Yaël Dillies is suggesting to name lemmas like docs#finprod_mem_def, bfinprod_def instead. i.e. replace finprod_mem by bfinprod mirroring names like docs#Set.mem_biUnion.

I think finprod_mem is perfectly following the symbol reading convention and is followed consistently (Loogle shows 0 usages of bfinprod), so I see no reason why to switch to bfinprod instead.

What do people think?

Eric Wieser (May 09 2025 at 12:42):

I think this issue is the clash with docs#prod_mem

Aaron Liu (May 09 2025 at 12:43):

Why is that not namespaced?

Riccardo Brasca (May 09 2025 at 12:45):

Aaron Liu said:

Why is that not namespaced?

Surely a mistake.

Eric Wieser (May 09 2025 at 12:49):

To match docs#multiset_prod_mem

Eric Wieser (May 09 2025 at 12:49):

I think probably that should be multisetProd_mem

Aaron Liu (May 09 2025 at 12:51):

I was thinking Multiset.prod_mem

Aaron Liu (May 09 2025 at 12:55):

certainly I wouldn't be searching for multisetProd_mem

Aaron Liu (May 09 2025 at 12:57):

Maybe that should be protected

Eric Wieser (May 09 2025 at 13:28):

see also docs#dfinsuppProd_mem

Aaron Liu (May 09 2025 at 13:49):

I see it, and I'm thinking it should be DFinsupp.prod_mem

Eric Wieser (May 09 2025 at 13:50):

I'd argue the naming convention permits both

Aaron Liu (May 09 2025 at 13:50):

I guess

Eric Wieser (May 09 2025 at 13:51):

Probably the naming originates from when we had separate Submonoid.dfinsuppProd_mem etc lemmas

Aaron Liu (May 09 2025 at 13:51):

I see, that makes sense


Last updated: Dec 20 2025 at 21:32 UTC