Skip to content

Commit 0bbf39f

Browse files
Add test
1 parent f30f9d7 commit 0bbf39f

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{"env": 0}
2+
3+
{"env": 1}
4+
5+
{"sorries":
6+
[{"proofState": 0,
7+
"pos": {"line": 1, "column": 42},
8+
"goal": "α : Type\ninst✝ : Inhabited α\n⊢ α",
9+
"endPos": {"line": 1, "column": 47}}],
10+
"messages":
11+
[{"severity": "warning",
12+
"pos": {"line": 1, "column": 4},
13+
"endPos": {"line": 1, "column": 9},
14+
"data": "declaration uses 'sorry'"}],
15+
"env": 2}
16+
17+
{"proofStatus": "Completed", "proofState": 1, "goals": []}
18+
19+
{"sorries":
20+
[{"proofState": 2,
21+
"pos": {"line": 1, "column": 45},
22+
"goal": "α : Type\ninst✝ : Inhabited α\n⊢ α",
23+
"endPos": {"line": 1, "column": 50}}],
24+
"messages":
25+
[{"severity": "warning",
26+
"pos": {"line": 1, "column": 4},
27+
"endPos": {"line": 1, "column": 9},
28+
"data": "declaration uses 'sorry'"}],
29+
"env": 3}
30+
31+
{"proofStatus": "Completed", "proofState": 3, "goals": []}
32+
33+
{"env": 4}
34+
35+
{"sorries":
36+
[{"proofState": 4,
37+
"pos": {"line": 1, "column": 17},
38+
"goal": "α : Type\ns : Inhabited α\n⊢ α",
39+
"endPos": {"line": 1, "column": 22}}],
40+
"messages":
41+
[{"severity": "warning",
42+
"pos": {"line": 1, "column": 4},
43+
"endPos": {"line": 1, "column": 9},
44+
"data": "declaration uses 'sorry'"}],
45+
"env": 5}
46+
47+
{"proofStatus": "Completed", "proofState": 5, "goals": []}
48+
49+
{"sorries":
50+
[{"proofState": 6,
51+
"pos": {"line": 1, "column": 20},
52+
"goal": "α : Type\ns : Inhabited α\n⊢ α",
53+
"endPos": {"line": 1, "column": 25}}],
54+
"messages":
55+
[{"severity": "warning",
56+
"pos": {"line": 1, "column": 4},
57+
"endPos": {"line": 1, "column": 9},
58+
"data": "declaration uses 'sorry'"}],
59+
"env": 6}
60+
61+
{"proofStatus": "Completed", "proofState": 7, "goals": []}
62+

test/local_instance_proof.in

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{"cmd": "def test (α : Type) [s : Inhabited α] : α := @Inhabited.default α s"}
2+
3+
{"cmd": "def test2 (α : Type) [Inhabited α] : α := test α", "env": 0}
4+
5+
{"cmd": "def test2 (α : Type) [Inhabited α] : α := sorry", "env": 0}
6+
7+
{"tactic": "exact test α", "proofState": 0}
8+
9+
{"cmd": "def test2 (α : Type) [Inhabited α] : α := by sorry", "env": 0}
10+
11+
{"tactic": "exact test α", "proofState": 2}
12+
13+
{"cmd": "variable (α : Type) [s : Inhabited α]", "env": 0}
14+
15+
{"cmd": "def test2 : α := sorry", "env": 4}
16+
17+
{"tactic": "exact test α", "proofState": 4}
18+
19+
{"cmd": "def test2 : α := by sorry", "env": 4}
20+
21+
{"tactic": "exact test α", "proofState": 6}

0 commit comments

Comments
 (0)