-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathEraseSimp.lean
39 lines (31 loc) · 963 Bytes
/
EraseSimp.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
/-
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
example (n : Nat) : n + m = m + n := by
aesop (add simp Nat.add_comm)
attribute [local simp] Nat.add_comm
example (n : Nat) : n + m = m + n := by
aesop
/--
error: tactic 'aesop' failed, made no progress
-/
#guard_msgs in
example (n : Nat) : n + m = m + n := by
aesop (erase Nat.add_comm) (config := { warnOnNonterminal := false })
/--
error: tactic 'aesop' failed, made no progress
-/
#guard_msgs in
example (n : Nat) : n + m = m + n := by
aesop (erase norm simp Nat.add_comm) (config := { warnOnNonterminal := false })
/--
error: aesop: 'Nat.add_comm' is not registered (with the given features) in any rule set.
-/
#guard_msgs in
example (n : Nat) : n + m = m + n := by
aesop (erase apply Nat.add_comm)