-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathDestructProductsTransparency.lean
49 lines (38 loc) · 1.32 KB
/
DestructProductsTransparency.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
/-
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
@[aesop safe constructors]
structure Sig (α : Sort u) (β : α → Sort v) : Sort _ where
fst : α
snd : β fst
def T α β := α ∧ β
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example (h : T α β) : Sig α (λ _ => β) := by
aesop (config := { terminal := true })
example (h : T α β) : Sig α (λ _ => β) := by
aesop (config := { destructProductsTransparency := .default })
def U := T
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example (h : U α β) : Sig α (λ _ => β) := by
aesop (config := { terminal := true })
example (h : U α β) : Sig α (λ _ => β) := by
aesop (config := { destructProductsTransparency := .default })
/--
error: tactic 'aesop' failed, failed to prove the goal after exhaustive search.
-/
#guard_msgs in
example (h : U α β ∧ U γ δ) : Sig α (λ _ => γ) := by
aesop (config := { terminal := true })
example (h : U α β ∧ U γ δ) : Sig α (λ _ => γ) := by
aesop (config := { destructProductsTransparency := .default })