Zulip Chat Archive

Stream: new members

Topic: Is there a reason why `has_pow nat nat` doesn't exist?


Ben (Oct 30 2022 at 13:04):

Trying to do n ^ 2 what am I doing wrong?

Yaël Dillies (Oct 30 2022 at 13:07):

Have you imported file#data/nat/basic ?

Ben (Oct 30 2022 at 13:13):

Ah that was what was missing. yah I think its via a alg structure right? Was confused because you can use * and + without the import

Yaël Dillies (Oct 30 2022 at 13:17):

Yeah it's because it goes through docs#monoid (docs#monoid.has_pow) and docs#nat.monoid is defined in data.nat.basic


Last updated: Dec 20 2023 at 11:08 UTC