-
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.
feat: activate scopes when unpickling
- Loading branch information
Showing
12 changed files
with
103 additions
and
93 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
{"unpickleEnvFrom": "test/H20231215.olean"} | ||
|
||
{"cmd": "theorem mathd_numbertheory_739 :\n factorial 9 % 10 = 0 := by sorry", "env": 0} | ||
{"cmd": "theorem mathd_numbertheory_739 :\n 9! % 10 = 0 := by sorry", "env": 0} |
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,18 @@ | ||
{"env": 0} | ||
|
||
{"env": 1} | ||
|
||
{"sorries": | ||
[{"proofState": 0, | ||
"pos": {"line": 1, "column": 22}, | ||
"goal": "⊢ ◾", | ||
"endPos": {"line": 1, "column": 27}}], | ||
"messages": | ||
[{"severity": "warning", | ||
"pos": {"line": 1, "column": 7}, | ||
"endPos": {"line": 1, "column": 14}, | ||
"data": "declaration uses 'sorry'"}], | ||
"env": 2} | ||
|
||
{"env": 1} | ||
|
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,13 +1,8 @@ | ||
{"cmd": "namespace X"} | ||
{"cmd": "import Lean"} | ||
|
||
{"cmd": "def f (x : Nat) := x + 37", "env": 0} | ||
{"cmd": "open Lean.Compiler", "env": 0} | ||
|
||
{"cmd": "scoped notation:10000 n \"!\" => f n", "env": 1} | ||
{"cmd": "unsafe example : ◾ := sorry", "env": 1} | ||
|
||
{"cmd": "end X", "env": 2} | ||
{"pickleTo": "test/f.olean", "env": 1} | ||
|
||
{"cmd": "open X", "env": 3} | ||
|
||
{"cmd": "example : 39 = 2 ! := rfl", "env": 4} | ||
|
||
{"pickleTo": "test/f.olean", "env": 4} |
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,14 @@ | ||
{"env": 0} | ||
|
||
{"sorries": | ||
[{"proofState": 0, | ||
"pos": {"line": 1, "column": 22}, | ||
"goal": "⊢ ◾", | ||
"endPos": {"line": 1, "column": 27}}], | ||
"messages": | ||
[{"severity": "warning", | ||
"pos": {"line": 1, "column": 7}, | ||
"endPos": {"line": 1, "column": 14}, | ||
"data": "declaration uses 'sorry'"}], | ||
"env": 1} | ||
|
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,3 +1,3 @@ | ||
{"unpickleEnvFrom": "test/f.olean"} | ||
|
||
{"cmd": "example : 39 = 2 ! := rfl", "env": 1} | ||
{"cmd": "unsafe example : ◾ := sorry", "env": 0} |
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 @@ | ||
{"cmd": "import Lean"} | ||
|
||
{"cmd": "namespace X", "env": 0} | ||
|
||
{"cmd": "def f (x : Nat) := x + 37", "env": 1} | ||
|
||
{"cmd": "scoped notation:10000 n \"!\" => f n", "env": 2} | ||
|
||
{"cmd": "end X", "env": 3} | ||
|
||
{"cmd": "open X", "env": 4} | ||
|
||
{"cmd": "example : 39 = 2 ! := rfl", "env": 5} | ||
|
||
{"cmd": "open Lean.Compiler", "env": 5} | ||
|
||
{"cmd": "unsafe example : ◾ := sorry", "env": 7} | ||
|
||
{"pickleTo": "test/f.olean", "env": 7} | ||
|
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,3 @@ | ||
{"unpickleEnvFrom": "test/f.olean"} | ||
|
||
{"cmd": "example : 39 = 2 ! := rfl", "env": 0} |