-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathNoProgress.lean
61 lines (49 loc) · 1.06 KB
/
NoProgress.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
/-
Copyright (c) 2023 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
def T := True
/--
error: tactic 'aesop' failed, made no progress
-/
#guard_msgs in
example : T := by
aesop
@[aesop norm simp]
def F := False
/--
warning: aesop: failed to prove the goal after exhaustive search.
---
error: unsolved goals
⊢ False
-/
#guard_msgs in
example : F := by
aesop
def F' := False
@[aesop safe apply]
theorem F'_def : False → F' := id
/--
warning: aesop: failed to prove the goal after exhaustive search.
---
error: unsolved goals
⊢ False
-/
#guard_msgs in
example : F' := by
aesop
attribute [-aesop] F'_def
attribute [aesop 100%] F'_def
-- When an unsafe rule is applied, we don't count this as progress because the
-- remaining goal that the user gets to see is exactly the same as the initial
-- goal.
/--
error: tactic 'aesop' failed, made no progress
-/
#guard_msgs in
example : F' := by
aesop