Zulip Chat Archive

Stream: new members

Topic: Name of typeclass for algebraically closed fields


Isak Colboubrani (Sep 11 2024 at 20:18):

Just out of curiosity: why is the typeclass for algebraically closed fields called IsAlgClosed instead of something like AlgebraicallyClosedField or a similar name?

Mathlib/FieldTheory/IsAlgClosed/Basic.lean-/-- Typeclass for algebraically closed fields. … --/
Mathlib/FieldTheory/IsAlgClosed/Basic.lean:class IsAlgClosed : Prop where 

Ruben Van de Velde (Sep 11 2024 at 20:21):

Prop-values typeclasses are generally named IsFoo to flag that fact

Isak Colboubrani (Sep 11 2024 at 20:30):

@Ruben Van de Velde Thanks! I see the point of the presence of the Is prefix, but what about a Field suffix? Would it be a bad idea to call it IsAlgClosedField to make it more grep:able and also in line with the naming say class IsPrincipalIdealRing (R : Type u) [Semiring R] : Prop …?

Ruben Van de Velde (Sep 11 2024 at 20:33):

I guess it could be, but it would be longer without being clearer, while you couldn't rename IsPrincipalIdealRing to IsPrincipalIdeal

Isak Colboubrani (Sep 11 2024 at 20:37):

I see the point. Thanks for clarifying!


Last updated: May 02 2025 at 03:31 UTC