Zulip Chat Archive

Stream: general

Topic: fixes against the latest mathlib


Kenny Lau (Apr 08 2018 at 13:38):

now there is a global ^ called pow, and now the type of n will not be inferred from f^n (you need to manually state that n is of type nat). In that case, pow unfolds to monoid.pow, which can be unfolded as before the latest version.

Kevin Buzzard (Apr 08 2018 at 13:48):

Are you talking about the nightly from the 6th?

Kenny Lau (Apr 08 2018 at 13:48):

right

Chris Hughes (Apr 08 2018 at 14:26):

So no more nat.pow?

Kenny Lau (Apr 08 2018 at 14:27):

I have not tested, but I believe Lean figures out whether you mean monoid.pow or nat.pow

Kenny Lau (Apr 08 2018 at 14:27):

depending on the first argument

Chris Hughes (Apr 08 2018 at 17:23):

Getting rid of local infix ^ := monoid.pow seems to help, so it uses has_pow.pow which is definitionally equal, but has rw lemmas.


Last updated: Dec 20 2023 at 11:08 UTC