Zulip Chat Archive

Stream: mathlib4

Topic: !4#5199: timeout problem in birthday problem


Moritz Firsching (Jun 18 2023 at 11:56):

In !4#5199, Wiedijk100Theorems.BirthdayProblem, I get a timeout, even with setting maxHeartbeats to 0.
Also maxRecDepth needed to be bumped.
I wonder if this is a regression or I'm just overlooking some simple fix.

Eric Rodriguez (Jun 19 2023 at 23:57):

having a look at this (it is my code so I feel a bit guilty!) it seems to be the big numbers causing issues

Eric Rodriguez (Jun 19 2023 at 23:57):

I thought this was meant to be fine because we were using GMP?

Eric Rodriguez (Jun 20 2023 at 00:21):

I pushed some working version, I think specifically the issue is big numbers coerced to ennreal

Eric Rodriguez (Jun 20 2023 at 00:22):

I do technically need this result: theorem _root_.ENNReal.mul_div (a b c : ℝ≥0∞) : a * (b / c) = (a * b) / c := sorry

Eric Rodriguez (Jun 20 2023 at 00:22):

I assume this is true but it may not be

Eric Rodriguez (Jun 20 2023 at 00:22):

also I had to extract have : ∀ a b : ℕ, 2 * a < b → 2 * (a : ℝ≥0∞) < b := fun _ _ h => by norm_cast; otherwise norm_cast goes haywire and tries to solve stuff it shouldn't be solving

Eric Rodriguez (Jun 20 2023 at 00:22):

also some simp_rws are painfully slow

Eric Rodriguez (Jun 20 2023 at 08:26):

this file is now compiling but I do think some of the issues are worth looking into

Kevin Buzzard (Jun 20 2023 at 08:28):

In my experience you only get people looking at timeouts/slowdowns if you demonstrate them with a #mwe that works on master.

Jeremy Tan (Jun 20 2023 at 09:08):

Eric Rodriguez said:

this file is now compiling but I do think some of the issues are worth looking into

There is no timeout. I got the original proof to work just by adding some newlines brackets

Jeremy Tan (Jun 20 2023 at 09:23):

It is now ready for review


Last updated: Dec 20 2023 at 11:08 UTC