-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathNonterminal.lean
73 lines (61 loc) · 1.23 KB
/
Nonterminal.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/-
Copyright (c) 2022 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import Aesop
set_option aesop.check.all true
set_option aesop.smallErrorMessages true
structure MyTrue₁
structure MyTrue₂
@[aesop safe]
structure MyTrue₃ where
tt : MyTrue₁
/--
warning: aesop: failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example : MyTrue₃ := by
aesop
apply MyTrue₁.mk
@[aesop safe]
structure MyFalse where
falso : False
/--
warning: aesop: failed to prove the goal after exhaustive search.
---
error: unsolved goals
⊢ False
-/
#guard_msgs in
example : MyFalse := by
aesop
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example : MyFalse := by
aesop (config := { terminal := true })
/--
error: unsolved goals
⊢ False
-/
#guard_msgs in
example : MyFalse := by
aesop (config := { warnOnNonterminal := false })
@[aesop safe]
structure MyFalse₂ where
falso : False
tt : MyTrue₃
/--
warning: aesop: failed to prove the goal after exhaustive search.
---
error: unsolved goals
case falso
⊢ False
case tt
⊢ MyTrue₁
-/
#guard_msgs in
example : MyFalse₂ := by
aesop