Open gebner opened 2 years ago
category_theory.sites.pretopology
finished after more than an hour of runtime.
Can we add timing info to the mathport logs? For example, the time taken for binport and synport on each file. Also, it doesn't seem like the mathlib commit is available from the logs - I can only find the commits for lean3, lean4, and mathlib4.
I've added the mathlib commit info to both the log as well as the predata tarball.
I'm not sure if the timing is helpful. But at least we can now try this out locally:
./download-predata.sh predata-nightly-2022-08-26
rm -rf Outputs
./build/bin/mathport --make config.json Mathbin::data.analysis.filter
Hooked up a profiler to order.filer.basic
:
# Children Self Command Shared Object Symbol
99.93% 2.40% mathport mathport [.] lean::csimp_fn::is_recursive_fn::visit
I guess we accidentally (?) made some function computable in mathlib and now we're running the compiler on everything.
I think we should probably force_noncomputable everything in mathbin. The terms are not appropriate for evaluation by lean 4 and it's a bit dangerous to assume they are. (If that's too heavy a hammer, we could put a small timeout on the compiler and give up otherwise.)
Hmm, now it hangs at ζ-reduction in number_theory.bertrand
(bertrand.real_main_inequality
to be specific).
100.00% 0.00% mathport mathport [.] l_Lean_Meta_transform_visit___at_Lean_Meta_zetaReduce___spec__2___lambda__1
Oh, is this with https://github.com/leanprover/lean4/pull/1512? That would at least explain zetaReduce
potentially taking longer (because it should be more correct now).
No, without. Maybe 1512 fixes this issue.
The latest timeouts don't seem to be caused by a simple infinite loop. It's just that many files now take a lot longer than they used to. For example here is what's running right now:
data.analysis.filter
has been running for 75 minutes and is not finished yet, but I think it will finish at some point. To compare,topology.local_homeomorph
was running for 20 minutes but finished then.This seems to be due to a mathlib change between August 23 (successful build) and August 25 (first timeout). As far as I can tell, nothing changed on the mathport end.