Zulip Chat Archive

Stream: std4

Topic: https://github.com/leanprover/std4/pull/154


Scott Morrison (Jun 17 2023 at 08:05):

@François G. Dorais, your PR yesterday to Std adding lots of lemmas in the Nat namespace is now causing countless errors in mathlib4 of the form:

error: stdout:
./././Mathlib/Combinatorics/Additive/PluenneckeRuzsa.lean:232:26: error: ambiguous, possible interpretations
  _root_.pow_add :  (a : ?m.239330) (m n : ), a ^ (m + n) = a ^ m * a ^ n

  Nat.pow_add :  (a m n : ), a ^ (m + n) = a ^ m * a ^ n
./././Mathlib/Combinatorics/

Is there a plan to address this?

Scott Morrison (Jun 17 2023 at 08:13):

I see that some lemmas in Std/Data/Nat/Lemmas.lean are protected and others aren't (including all the new lemmas from yesterday), but I don't see the rule.

Ruben Van de Velde (Jun 17 2023 at 08:17):

It seems a bit unfortunate that we're ending up with a parallel development of a bunch of mathematics specialized to Nat again, though I also don't have a better proposal

Scott Morrison (Jun 17 2023 at 08:18):

Could we just protect all these lemmas?

Mario Carneiro (Jun 17 2023 at 16:15):

They should have all been protected

Mario Carneiro (Jun 17 2023 at 16:17):

the rule is that anything which has an unnamespaced version in mathlib is protected (and possibly some others where such a lemma is likely)

Scott Morrison (Jun 18 2023 at 02:42):

https://github.com/leanprover/std4/pull/157

François G. Dorais (Jun 19 2023 at 16:51):

(deleted)


Last updated: Dec 20 2023 at 11:08 UTC