Zulip Chat Archive

Stream: mathlib4

Topic: groupCohomology namespace


Violeta Hernández (Jan 30 2026 at 19:38):

We have a groupCohomology namespace used for theorems such as Hilbert 90 (docs#groupCohomology.exists_mul_galRestrict_of_norm_eq_one). This smells quite fishy to me, don't we generally make namespaces UpperCamelCase?

Joël Riou (Jan 30 2026 at 19:43):

No. The reason the name is not capitalized is that this lemma is related to group cohomology (which corrresponds to the definition groupCohomology, which is not a type). We have a bunch of other examples, like kernel.lift, etc, for definitions that are related to kernel in category theory.

Violeta Hernández (Jan 30 2026 at 19:44):

Sure, but the lemma I mentioned doesn't even mention groupCohomology. So it's not enabling any sort of dot notation, and it feels more like just a bare namespace.

Joël Riou (Jan 30 2026 at 19:49):

Even though there is no groupCohomology, this is a standard group cohomology result...

Violeta Hernández (Jan 30 2026 at 19:52):

We don't generally preface theorems on field theory with a FieldTheory namespace, or theorems on topology with a Topology namespace.

Rémy Degenne (Jan 30 2026 at 19:59):

But we do preface results in measure theory with MeasureTheory, and similarly for ProbabilityTheory.

Violeta Hernández (Jan 30 2026 at 20:00):

Huh. Is there a general rule for this?

Edward van de Meent (Jan 30 2026 at 20:43):

i have to say i agree with Violeta here that it should be capitalised, as the theorem is not about the declaration docs#groupCohomology but about the field of Group Cohomology.

Edward van de Meent (Jan 30 2026 at 20:53):

also, one might argue that, since groupCohomology gives an element of ModuleCat k, it actually is a type and therefore should be capitalised?

Edward van de Meent (Jan 30 2026 at 20:54):

that interpretation might not be consistent with the rest of mathlib though, i haven't checked.

Joël Riou (Jan 30 2026 at 22:39):

I do not think we want to revert https://github.com/leanprover-community/mathlib4/pull/6029

Yury G. Kudryashov (Jan 31 2026 at 00:41):

Edward van de Meent said:

also, one might argue that, since groupCohomology gives an element of ModuleCat k, it actually is a type and therefore should be capitalised?

No, ModuleCat is not a Sort*; it's a bundled object.

Edward van de Meent (Jan 31 2026 at 11:35):

i know it's a bundled object, but one can treat it as a Sort because the coercion exists


Last updated: Feb 28 2026 at 14:05 UTC