Skip to content

Commit

Permalink
Merge pull request #2 from loganrjmurphy/docker
Browse files Browse the repository at this point in the history
Add Dockerfile and more instructions
  • Loading branch information
Kaiyu Yang authored May 29, 2024
2 parents 1669056 + 2628d91 commit b50829c
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 1,424 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode
tmp
.lake
python/__pycache__
*/.DS_Store
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Book/All.lean
/build
/lake-packages/*
/.lake/*
Expand Down
4 changes: 3 additions & 1 deletion AutoFormalization/proof/autoformalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@


def preceding_propositions(idx):
with open("AutoFormalization/proof/book_propositions.json", "r", encoding="utf-8") as f:
with open(
"AutoFormalization/proof/book_propositions.json", "r", encoding="utf-8"
) as f:
propositions = json.load(f)
pre_props = []
for i in range(1, idx):
Expand Down
12 changes: 4 additions & 8 deletions AutoFormalization/statement/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from E3.checker import Checker
from E3.utils import ROOT_DIR


def main():
parser = argparse.ArgumentParser()
parser.add_argument(
Expand All @@ -32,14 +33,9 @@ def main():
)
parser.add_argument(
"--mode",
choices=[
"bvars",
"skipApprox",
"onlyApprox",
"full"
],
choices=["bvars", "skipApprox", "onlyApprox", "full"],
default="skipApprox",
help="E3 checker mode"
help="E3 checker mode",
)
parser.add_argument(
"--reasoning",
Expand Down Expand Up @@ -112,7 +108,7 @@ def main():
cnt += 1
except Exception as e:
print(e)
continue
continue

print(f"cnt: {cnt}, tot: {tot}, acc: {(cnt/tot)*100:.2f}%")

Expand Down
Loading

0 comments on commit b50829c

Please sign in to comment.