Skip to content

Commit

Permalink
fix LakeMain.lean
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Oct 6, 2024
1 parent fed54c2 commit ab13370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lean_dojo/data_extraction/traced_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,6 @@ def _from_lean4_traced_file(

data["module_paths"] = []
deps_path = json_path.with_suffix("").with_suffix("").with_suffix(".dep_paths")
if not deps_path.exists():
import pdb

pdb.set_trace()

for line in deps_path.open():
line = line.strip()
Expand Down
2 changes: 2 additions & 0 deletions src/lean_dojo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def to_lean_path(root_dir: Path, path: Path) -> Path:
assert root_dir.name != "lean4"
if path == LEAN4_PACKAGES_DIR / "lean4/lib/lean/Lake.lean":
return LEAN4_PACKAGES_DIR / "lean4/src/lean/lake/Lake.lean"
elif path == LEAN4_PACKAGES_DIR / "lean4/lib/lean/LakeMain.lean":
return LEAN4_PACKAGES_DIR / "lean4/src/lean/lake/LakeMain.lean"
elif path.is_relative_to(LEAN4_PACKAGES_DIR / "lean4/lib/lean/Lake"):
# E.g., "lake-packages/lean4/lib/lean/Lake/Util/List.lean"
p = path.relative_to(LEAN4_PACKAGES_DIR / "lean4/lib/lean/Lake")
Expand Down

0 comments on commit ab13370

Please sign in to comment.