I noticed that in prover/evaluate.py:_get_theorems_from_files, only theorems are sorted. I could definitely be wrong, but my understanding is that theorems and positions are constructed as parallel lists from the .json file and should be kept parallel as the later call to search_unordered zips them together.
I definitely mean for this to be a helpful fix, but if I misunderstood something, please let me know!
Thanks as always for open sourcing LeanDojo and related experiments!
I noticed that in
prover/evaluate.py:_get_theorems_from_files
, onlytheorems
are sorted. I could definitely be wrong, but my understanding is thattheorems
andpositions
are constructed as parallel lists from the .json file and should be kept parallel as the later call tosearch_unordered
zips them together.I definitely mean for this to be a helpful fix, but if I misunderstood something, please let me know!
Thanks as always for open sourcing LeanDojo and related experiments!