It seems that LeanDojo cannot enter a theorem if there is a documentation comment above it. I found out that this occurs because writing anything between the doc comment and the definition in Lean causes an error. For example, we cannot write
/--
Some docs
-/
set_option maxHeartbeats 0 in
theorem foo : 1 = 1 := by sorry
and after modifying the .lean file this way Lake is unable to build it.
It seems that LeanDojo cannot enter a theorem if there is a documentation comment above it. I found out that this occurs because writing anything between the doc comment and the definition in Lean causes an error. For example, we cannot write
and after modifying the .lean file this way Lake is unable to build it.
Minimal example:
This code raises the exception