Skip to content

Commit 53aa3e5

Browse files
authored
add more tests (leanprover-community#18)
1 parent 0ddd89e commit 53aa3e5

6 files changed

+60
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{"env": 0}
2+
3+
{"sorries":
4+
[{"proofState": 0,
5+
"pos": {"line": 1, "column": 36},
6+
"goal": "x : Nat ⊢ x + 1 > x",
7+
"endPos": {"line": 1, "column": 41}}],
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+
{"proofState": 1,
16+
"goals":
17+
["case zero\n⊢ Nat.zero + 1 > Nat.zero",
18+
"case succ\nx : Nat\nhx : x + 1 > x\n⊢ Nat.succ x + 1 > Nat.succ x"]}
19+

test/Mathlib/test/H20231115.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{"cmd": "import Mathlib.Tactic.Cases"}
2+
3+
{"cmd": "example {x : Nat} : x + 1 > x := by sorry", "env": 0}
4+
5+
{"tactic": "induction' x with x hx", "proofState": 0}
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{"env": 0}
2+
3+
{"sorries":
4+
[{"proofState": 0,
5+
"pos": {"line": 3, "column": 12},
6+
"goal": "case zero ⊢ Nat.zero + 1 > Nat.zero",
7+
"endPos": {"line": 3, "column": 17}},
8+
{"proofState": 1,
9+
"pos": {"line": 3, "column": 12},
10+
"goal": "case succ x : Nat hx : x + 1 > x ⊢ Nat.succ x + 1 > Nat.succ x",
11+
"endPos": {"line": 3, "column": 17}}],
12+
"messages":
13+
[{"severity": "warning",
14+
"pos": {"line": 1, "column": 0},
15+
"endPos": {"line": 1, "column": 7},
16+
"data": "declaration uses 'sorry'"}],
17+
"env": 1}
18+

test/Mathlib/test/H20231115_2.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{"cmd": "import Mathlib.Tactic.Cases"}
2+
3+
{"cmd": "example {x : Nat} : x + 1 > x := by\n induction' x with x hx\n all_goals sorry", "env": 0}
4+
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{"env": 0}
2+
3+
{"messages":
4+
[{"severity": "error",
5+
"pos": {"line": 1, "column": 33},
6+
"endPos": {"line": 2, "column": 24},
7+
"data":
8+
"unsolved goals\ncase zero\n⊢ Nat.zero + 1 > Nat.zero\n\ncase succ\nx : Nat\nhx : x + 1 > x\n⊢ Nat.succ x + 1 > Nat.succ x"}],
9+
"env": 1}
10+

test/Mathlib/test/H20231115_3.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{"cmd": "import Mathlib.Tactic.Cases"}
2+
3+
{"cmd": "example {x : Nat} : x + 1 > x := by\n induction' x with x hx", "env": 0}
4+

0 commit comments

Comments
 (0)