Zulip Chat Archive

Stream: Is there code for X?

Topic: div_mul_div_comm for nat


Chris Birkbeck (Jun 03 2022 at 09:25):

Do we have

lemma nat_div_mul_div_comm (a b c d : ) (ha : a  b) (hc : c  d) : (b*d)/(a*c) = (b/a)*(d/c) :=
begin
sorry,
end

?
We have div_mul_div_comm₀ but this is for comm_group_with_zero.

Damiano Testa (Jun 03 2022 at 09:33):

does docs#nat.div_mul_div_comm not work, as in (nat.div_mul_div_comm ha hc).symm?

Chris Birkbeck (Jun 03 2022 at 09:35):

Ha! it seems I almost guessed the name, but not quite!

Chris Birkbeck (Jun 03 2022 at 09:35):

That does work. Its funny that library_search couldnt find it.

Damiano Testa (Jun 03 2022 at 09:35):

Namespacing can be confusing, especially when it produces something that does not work with dot-notation...

Damiano Testa (Jun 03 2022 at 09:37):

Btw, I found it by writing div_mul_div_comm₀ in the online search tool. It produced no result, so I removed the trailing and it immediately showed div_mul_div_comm, nat.div_mul_div_comm as hits.

Damiano Testa (Jun 03 2022 at 09:39):

I suspect that div_mul_div_comm₀ was erased by one of Yaël's refactors.

Yaël Dillies (Jun 03 2022 at 11:24):

Yep, Damiano is exactly right. #14000

Yaël Dillies (Jun 03 2022 at 11:25):

For completeness, we should have nat.mul_div_mul_comm.


Last updated: Dec 20 2023 at 11:08 UTC