-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a
rootGoals
option to instantiate synthetic sorries from declar…
…ations root goal - Useful for people experimenting with automated provers. Example usage: run a lean file from the MiniF2F benchmark, and get sorries even if there already exist proofs. Similar to LeanDojo, but without having to trace the project. - Fix: add rootGoals for proof states extracted by the `tactics` method
- Loading branch information
1 parent
1c81dbe
commit caa1de0
Showing
12 changed files
with
151 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{"sorries": | ||
[{"proofState": 0, | ||
"pos": {"line": 1, "column": 17}, | ||
"goal": "⊢ 1 = 1", | ||
"endPos": {"line": 1, "column": 17}}, | ||
{"proofState": 1, | ||
"pos": {"line": 5, "column": 22}, | ||
"goal": "⊢ 1 + 1 = 2", | ||
"endPos": {"line": 5, "column": 22}}], | ||
"messages": | ||
[{"severity": "info", | ||
"pos": {"line": 3, "column": 2}, | ||
"endPos": {"line": 3, "column": 8}, | ||
"data": "Try this: exact rfl"}], | ||
"env": 0} | ||
|
||
{"proofStatus": "Completed", "proofState": 2, "goals": []} | ||
|
||
{"proofStatus": "Completed", "proofState": 3, "goals": []} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{"cmd": "example : 1=1 := by\n skip\n exact?\n\ntheorem bb : 1+1=2 := by rfl", "rootGoals": true} | ||
|
||
{"proofState" : 0, "tactic": "rfl"} | ||
|
||
{"proofState" : 1, "tactic": "exact rfl"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{"messages": | ||
[{"severity": "error", | ||
"pos": {"line": 1, "column": 8}, | ||
"endPos": {"line": 1, "column": 10}, | ||
"data": | ||
"fail to show termination for\n ex\nwith errors\nfailed to infer structural recursion:\nno parameters suitable for structural recursion\n\nwell-founded recursion cannot be used, 'ex' does not take any (non-fixed) arguments"}], | ||
"env": 0} | ||
|
||
{"sorries": | ||
[{"proofState": 0, | ||
"pos": {"line": 1, "column": 22}, | ||
"goal": "⊢ False", | ||
"endPos": {"line": 1, "column": 27}}], | ||
"messages": | ||
[{"severity": "warning", | ||
"pos": {"line": 1, "column": 8}, | ||
"endPos": {"line": 1, "column": 10}, | ||
"data": "declaration uses 'sorry'"}], | ||
"env": 1} | ||
|
||
{"proofStatus": | ||
"Error: kernel type check failed: (kernel) declaration has free variables '[anonymous]'", | ||
"proofState": 1, | ||
"goals": []} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"cmd": "theorem ex : False := by apply ex"} | ||
|
||
{"cmd": "theorem ex : False := sorry"} | ||
|
||
{"proofState": 0, "tactic": "apply ex"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{"cmd": "theorem ex : False := by exact ex"} | ||
{"cmd": "theorem ex : False := by exact?"} | ||
|
||
{"cmd": "theorem ex : False := sorry"} | ||
|
||
{"proofState": 0, "tactic": "exact ex"} | ||
{"proofState": 0, "tactic": "exact?"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{"cmd": "theorem ex : False := by exact?"} | ||
{"cmd": "theorem ex : False := by exact ex"} | ||
|
||
{"cmd": "theorem ex : False := sorry"} | ||
|
||
{"proofState": 0, "tactic": "exact?"} | ||
|
||
{"proofState": 0, "tactic": "exact ex"} |