-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathStrategy.lean
38 lines (30 loc) · 937 Bytes
/
Strategy.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
/-
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
@[aesop 50% constructors]
inductive I₁
| ofI₁ : I₁ → I₁
| ofTrue : True → I₁
example : I₁ := by
aesop
example : I₁ := by
aesop (config := { strategy := .bestFirst })
example : I₁ := by
aesop (config := { strategy := .breadthFirst })
/--
error: tactic 'aesop' failed, maximum number of rule applications (10) reached. Set the 'maxRuleApplications' option to increase the limit.
-/
#guard_msgs in
example : I₁ := by
aesop (config :=
{ strategy := .depthFirst
maxRuleApplicationDepth := 0
maxRuleApplications := 10,
terminal := true })
example : I₁ := by
aesop (config := { strategy := .depthFirst, maxRuleApplicationDepth := 10 })