Zulip Chat Archive

Stream: new members

Topic: Opening Definitions


Brandon Sisler (Dec 05 2023 at 21:58):

Hey y'all simple question. If I have the following defined a Semigroup, with Semigroup.mul_assoc how can I alter things so that I can just refer to it as mul_assoc. Thanks!

Pedro Sánchez Terraf (Dec 06 2023 at 12:13):

Inside the definition of docs#Semigroup, mul_assoc is “protected” (not accessible without the Semigroup. qualification). Nevertheless, you have the docs#mul_assoc theorem, which you invoke simply as such.

Perhaps if you provide a #mwe people will be able to help in a more focused way.

Alex J. Best (Dec 06 2023 at 12:23):

There is also the export command

import Mathlib


class Semigroup' where
  mul_assooc : True

#check mul_assooc

export Semigroup' (mul_assooc)

#check mul_assooc

Last updated: Dec 20 2023 at 11:08 UTC