Skip to content

Commit fe95bc8

Browse files
committed
test using on_goal
1 parent a98ebe0 commit fe95bc8

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{"env": 0}
2+
3+
{"sorries":
4+
[{"proofState": 0,
5+
"pos": {"line": 1, "column": 60},
6+
"goal": "x : ℝ\nh0 : |x| > 1\n⊢ x < 0 ∨ 2 * x > 2",
7+
"endPos": {"line": 1, "column": 65}}],
8+
"messages":
9+
[{"severity": "warning",
10+
"pos": {"line": 1, "column": 0},
11+
"endPos": {"line": 1, "column": 7},
12+
"data": "declaration uses 'sorry'"}],
13+
"env": 1}
14+
15+
{"sorries":
16+
[{"proofState": 1, "goal": "x : ℝ\nh0 : |x| > 1\n⊢ x = x"},
17+
{"proofState": 2, "goal": "x : ℝ\nh0 : |x| > 1\nh1 : x = x\n⊢ x = x"}],
18+
"proofState": 3,
19+
"goals":
20+
["case pos\nx : ℝ\nh0 : |x| > 1\nh1 h2 : x = x\nh3 : x < 0\n⊢ x < 0 ∨ 2 * x > 2",
21+
"case neg\nx : ℝ\nh0 : |x| > 1\nh1 h2 : x = x\nh3 : ¬x < 0\n⊢ x < 0 ∨ 2 * x > 2"]}
22+

test/Mathlib/test/on_goal.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{"cmd": "import Mathlib\nopen Real"}
2+
3+
{"cmd": "example {x : ℝ} (h0: |x| > 1) : (x < 0) ∨ (2 * x > 2) := by sorry", "env": 0}
4+
5+
{"tactic": "on_goal 1 =>\n have h1 : x = x := by sorry\n have h2 : x = x := by sorry\n by_cases h3 : x < 0", "proofState": 0}

0 commit comments

Comments
 (0)