Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed May 13, 2024
1 parent f5a62bf commit 1460a26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lean_dojo/data_extraction/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ def is_private(self) -> bool:

def get_proof_node(self) -> Node:
decl_val_node = self.children[3]
if isinstnace(
if isinstance(
decl_val_node,
(
CommandDeclvalsimpleNode,
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from lean_dojo import *


BATTERIES_URL = "https://github.com/leanprover/batteries"
BATTERIES_URL = "https://github.com/leanprover-community/batteries"
AESOP_URL = "https://github.com/leanprover-community/aesop"
MATHLIB4_URL = "https://github.com/leanprover-community/mathlib4"
LEAN4_EXAMPLE_URL = "https://github.com/yangky11/lean4-example"
Expand Down
6 changes: 3 additions & 3 deletions tests/interaction/test_tactics.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_example_pow_two_pow_sub_pow_two_pow(mathlib4_repo: LeanGitRepo) -> None
def test_example_mem_nil_iff(batteries_repo: LeanGitRepo) -> None:
thm = Theorem(
batteries_repo,
"Std/Data/List/Lemmas.lean",
"Batteries/Data/List/Lemmas.lean",
"List.mem_nil_iff",
)
with Dojo(thm) as (dojo, s0):
Expand Down Expand Up @@ -141,7 +141,7 @@ def test_example_coe_monoidHom_mk(mathlib4_repo: LeanGitRepo) -> None:
def test_example_length_le(batteries_repo: LeanGitRepo) -> None:
thm = Theorem(
batteries_repo,
"Std/Data/List/Lemmas.lean",
"Batteries/Data/List/Lemmas.lean",
"List.IsSuffix.length_le",
)
with Dojo(thm) as (dojo, s0):
Expand Down Expand Up @@ -282,7 +282,7 @@ def test_example_mem_eqLocus(mathlib4_repo: LeanGitRepo) -> None:
def test_example_neg_lt_sub_right_of_lt_add(batteries_repo: LeanGitRepo) -> None:
thm = Theorem(
batteries_repo,
"Std/Data/Int/Order.lean",
"Batteries/Data/Int/Order.lean",
"Int.neg_lt_sub_right_of_lt_add",
)
with Dojo(thm) as (dojo, s0):
Expand Down

0 comments on commit 1460a26

Please sign in to comment.