-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathIntros.lean
44 lines (34 loc) · 1.24 KB
/
Intros.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
/-
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
def Injective₁ (f : α → β) := ∀ x y, f x = f y → x = y
abbrev Injective₂ (f : α → β) := ∀ x y, f x = f y → x = y
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example : Injective₁ (@id Nat) := by
aesop (config := { terminal := true })
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example : Injective₁ (@id Nat) := by
aesop (config := { introsTransparency? := some .reducible, terminal := true })
example : Injective₁ (@id Nat) := by
aesop (config := { introsTransparency? := some .default })
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example : Injective₂ (@id Nat) := by
aesop (config := { terminal := true })
example : Injective₂ (@id Nat) := by
aesop (config := { introsTransparency? := some .reducible })
example : Injective₂ (@id Nat) := by
aesop (config := { introsTransparency? := some .default })