Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Sep 6, 2024
1 parent 6d0795a commit c1efbf6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/lean_dojo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
CommandState,
TacticState,
LeanError,
TimeoutError,
TacticResult,
DojoCrashError,
DojoTacticTimeoutError,
Expand Down
10 changes: 7 additions & 3 deletions src/lean_dojo/data_extraction/traced_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,13 @@ def _from_lean4_traced_file(
data = json.load(json_path.open())

data["module_paths"] = []
for line in (
json_path.with_suffix("").with_suffix("").with_suffix(".dep_paths").open()
):
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()
if line == "":
break
Expand Down
8 changes: 1 addition & 7 deletions src/lean_dojo/interaction/dojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,14 @@ class LeanError:
error: str


@dataclass(frozen=True)
class TimeoutError:
error: str


TacticResult = Union[
TacticState,
ProofFinished,
LeanError,
TimeoutError,
ProofGivenUp,
]

CommandResult = Union[CommandState, LeanError, TimeoutError]
CommandResult = Union[CommandState, LeanError]

State = Union[CommandState, TacticState]

Expand Down

0 comments on commit c1efbf6

Please sign in to comment.