Zulip Chat Archive

Stream: Is there code for X?

Topic: multiplicity_gcd


Xavier Xarles (Apr 23 2022 at 10:04):

I have a proof for the result (and analogous for lcm and max),

import data.nat.gcd

lemma multiplicity_gcd {p m n : } (hp : p.prime):
  multiplicity p (nat.gcd m n) = min (multiplicity p m) (multiplicity p n) :=sorry

I think is not in mathlib. I did it to practice and because I need it for a project.

Ruben Van de Velde (Apr 23 2022 at 13:17):

Seems worth adding

Kevin Buzzard (Apr 23 2022 at 14:24):

@Xavier Xarles are you saying you have a proof? Please feel free to add it if it's not there!

Xavier Xarles (Apr 23 2022 at 18:09):

Kevin Buzzard said:

Xavier Xarles are you saying you have a proof? Please feel free to add it if it's not there!

I am not sure how to do it. I will talk with Marc Masdeu and ask him... On the other hand, I will ask also to help me to put in a more mathlib form...

Bhavik Mehta (Apr 23 2022 at 18:24):

I have this lemma in some file for the unit fractions project, I agree its useful

Xavier Xarles (May 08 2022 at 11:04):

I would like to make a PR on that. My GitHub is @XavierXarles.

Riccardo Brasca (May 08 2022 at 11:05):

I've sent you an invitation

Stuart Presnell (May 08 2022 at 16:22):

Is this the same as docs#factorization_gcd?

lemma factorization_gcd {a b : } (ha_pos : a  0) (hb_pos : b  0) :
  (gcd a b).factorization = a.factorization  b.factorization

Stuart Presnell (May 08 2022 at 16:24):

But we don't have the corresponding lemma for lcm and .


Last updated: Dec 20 2023 at 11:08 UTC